分析我的实际开发日志是一件痛苦的工作,因为有大量“event.DEBUG:已通知事件...”消息。 有人知道如何禁用调度程序通知日志吗?
提前致谢!
channels
来忽略事件。
monolog: handlers: main: type: stream path: "%kernel.logs_dir%/%kernel.environment%.log" level: debug channels: "!event"请参见详细信息:http://symfony.com/doc/current/cookbook/logging/channels_handlers.html#yaml-specification。
monolog:
handlers:
event_all:
bubble: false
action_level: DEBUG
type: stream
path: %kernel.logs_dir%/%kernel.environment%_event_all.log
channels: event
event_errors:
action_level: ERROR
type: stream
path: %kernel.logs_dir%/%kernel.environment%_event_errors.log
channels: event
main:
type: stream
path: %kernel.logs_dir%/%kernel.environment%.log
level: DEBUG