Skip to contents

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.

See also

Other Logging: get_configurations(), init_logger()

Methods


Method new()

Creates a new instance of a log config.

Usage

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