Min*_*dau 6 php symfony monolog symfony4
我当前的配置:
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
Run Code Online (Sandbox Code Playgroud)
现在请求通道已完全排除在 file_log 处理程序之外。我需要仅从通道请求中排除 action_level - 调试,而不是完全请求通道。是否可以使用 symfony monolog 配置,如果可以,如何实现?