我在生产环境的symfony日志中注意到我收到以下条目:
monolog:
channels: [error]
handlers:
syslog:
type: rotating_file
level: ERROR
bubble: false
buffer_size: 1024
handler: file_log
max_files: 14
mute:
type: "null"
channels: ['snc_redis', 'doctrine', 'security']
main:
type: rotating_file
action_level: error
handler: grouped
grouped:
type: group
members: [streamed, deduplicated]
streamed:
type: rotating_file
action_level: error
bubble: false
buffer_size: 1024
max_files: 10
deduplicated:
type: deduplication
handler: swift
swift:
type: swift_mailer
from_email: "%mandrill.settings.from_email%"
to_email: "%monolog_emails%"
subject: "Website - An error have occurred!"
level: error
formatter: monolog.formatter.html
content_type: text/html
我的config.yml设置如下:
imports:
- { resource: config.yml }
我的config_prod.yml看起来像这样:
{{1}}
所以我希望这些信息不会在日志文件中注册。
发生了什么,如何避免将其添加到日志中?