Learn R Programming

dyn.log (version 0.4.0)

LogDispatch: Log Dispatch

Description

R6 Class that dispatches log messages throughout the application.

Arguments

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

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.

See Also

Other Logging: get_configurations(), init_logger()