LogDispatch {dyn.log} | R Documentation |
Log Dispatch
Description
R6 Class that dispatches log messages throughout the application.
Details
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.
Methods
Public methods
Method new()
Creates a new instance of a log config.
Usage
LogDispatch$new()
Returns
A new LogLayout
object.
Method 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.
Usage
LogDispatch$attach_log_level(log_level)
Arguments
log_level
log level to attach
See Also
Other Logging:
get_configurations()
,
init_logger()
[Package dyn.log version 0.4.0 Index]