LogDispatch | R Documentation |
R6 Class that dispatches log messages throughout the application.
This object is designed to a centralized logging dispatcher that
renders log messages with the appropriate context of the calling
object. The log_layout()
object is used to generate log message
layouts (render formats), which are used by the LogDispatcher
to render highly-customizable and detailed log messages.
new()
Creates a new instance of a log config.
LogDispatch$new()
A new LogLayout
object.
attach_log_level()
Attaches a S3 log_level
object to the log
dispatcher by creating a new function wrapping the
specified log level, and binding and instance
of the dispatcher quote block with
the context of the log level.
LogDispatch$attach_log_level(log_level)
log_level
log level to attach
Other Logging:
get_configurations()
,
init_logger()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.