Als*_*nde 3 symfony doctrine-orm monolog
我无法在我的生产环境中获得学说渠道的记录.
我正在使用
这是我的monolog配置config_prod.yml:
monolog:
handlers:
doctrine:
bubble: false
action_level: DEBUG
type: stream
path: "%kernel.logs_dir%/%kernel.environment%_doctrine.log"
channels: doctrine
security:
bubble: false
action_level: DEBUG
type: stream
path: "%kernel.logs_dir%/%kernel.environment%_security.log"
channels: security
request:
bubble: false
action_level: DEBUG
type: stream
path: "%kernel.logs_dir%/%kernel.environment%_request.log"
channels: request
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!doctrine", "!security", "!request"]
Run Code Online (Sandbox Code Playgroud)
这是我的整个学说配置config.yml:
doctrine:
dbal:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8
orm:
auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true
Run Code Online (Sandbox Code Playgroud)
我有3个文件
../../../logs/prod.log
../../../logs/prod_request.log
../../../logs/prod_security.log
Run Code Online (Sandbox Code Playgroud)
我无法得到prod_doctrine.log.
我尝试了同一个文件中的所有通道prod.log.除了教条之外,我所有的频道都很好.
什么可以阻止学说的记录?我的版本有些不兼容吗?
| 归档时间: |
|
| 查看次数: |
1680 次 |
| 最近记录: |