从Symfony日志中排除基于通道和级别的日志条目

时间:2020-06-19 13:05:05

标签: php symfony symfony4 monolog

我当前的配置:

monolog:
    handlers:
        target_main:
            type:         fingers_crossed
            action_level: debug
            handler: file_log
            channels: ['!security' '!request']
        file_log:
            type: rotating_file
            path: "%kernel.logs_dir%/%kernel.environment%.log"
            level: debug
            max_files: 2

现在请求通道已完全从file_log处理程序中排除。我需要从频道请求中排除仅action_level-调试,而不是完全请求频道。 symfony monolog配置是否可行?如果是,怎么办?

0 个答案:

没有答案
相关问题