getLayout(name)
## S3 method for class 'default':
addLayout(name, ...)
## S3 method for class 'character':
addLayout(name, fun, ...)
The 'getLayout' function is used internally to get the registered layout function. It is kept visible so user-level introspection is available.
'simpleLayout' is a pre-defined layout function that prints messages in the following format: LEVEL [timestamp] Message.
'formatLayout' is a pre-defined layout function that prints tokens based on a format string. This is currently not implemented.
addLayout('default', simpleLayout)
addLayout(simpleLayout)
Run the code above in your browser using DataLab