php – 生产中的Symfony日志记录忽略日志级别
作者:互联网
来自factories.yml的相关片段:
prod:
logger:
class: sfAggregateLogger
param:
level: err
loggers:
sf_file_err:
class: sfFileLogger
param:
level: err
file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log
问题是:一切都记录下来了.
解决方法:
这个配置在我的所有项目中都适用于我.
prod:
logger:
class: sfAggregateLogger
param:
level: err
loggers:
sf_file_debug:
class: sfFileLogger
param:
level: err
file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log
标签:php,symfony1,error-logging,logging,symfony-1-4 来源: https://codeday.me/bug/20190709/1410078.html