【发布时间】:2016-03-04 04:34:05
【问题描述】:
如何禁用测试环境中的任何日志?与config_test.yml 文件中正确独白设置相关的问题,该文件继承自config_dev.yml,其中配置如下所示:
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: grouped_main
streamed_main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
grouped_main:
type: group
members: [streamed_main]
console:
type: console
bubble: false
verbosity_levels:
VERBOSITY_VERBOSE: INFO
VERBOSITY_VERY_VERBOSE: DEBUG
channels: ["!doctrine"]
console_very_verbose:
type: console
bubble: false
verbosity_levels:
VERBOSITY_VERBOSE: NOTICE
VERBOSITY_VERY_VERBOSE: NOTICE
VERBOSITY_DEBUG: DEBUG
channels: ["doctrine"]
【问题讨论】:
标签: php symfony logging config monolog