Closed robbieaverill closed 7 years ago
The Monolog handler interface provides a handle method which you can use to filter or keep log entries passed to it.
handle
We should be able to configure which log levels to keep for our DataObjectHandler, e.g.:
DataObjectHandler
--- Name: logviewerconfig --- SilverLeague\LogViewer\Handler\DataObjectHandler: handle_log_levels: [ INFO, WARN, ERROR ]
Alternatively, perhaps we put this along with some other settings e.g. maximum log entry limit, max lifetime before cleanup, etc into a SiteConfig area instead of config? I'd probably say we keep the UI clean and put it all in YAML.
The Monolog handler interface provides a
handle
method which you can use to filter or keep log entries passed to it.We should be able to configure which log levels to keep for our
DataObjectHandler
, e.g.:Alternatively, perhaps we put this along with some other settings e.g. maximum log entry limit, max lifetime before cleanup, etc into a SiteConfig area instead of config? I'd probably say we keep the UI clean and put it all in YAML.