我有Symfony 2.8并且已激活日志记录。在我的app / logs中,dir是dev.log文件,它工作正常。 但是我的Symfony工具栏中没有显示日志,当我打开Profiler时,日志菜单点也没有激活。我是否必须在配置中激活它?谢谢你的帮助!
我的config_dev.yml
imports:
- { resource: config.yml }
framework:
router:
resource: "%kernel.root_dir%/config/routing_dev.yml"
strict_requirements: true
profiler: { only_exceptions: false }
default_locale: "%locale%"
web_profiler:
toolbar: true
intercept_redirects: false
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: [!event]
console:
type: console
bubble: false
channels: [!event, !doctrine]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
assetic:
use_controller: true
swiftmailer:
# delivery_address: me@example.com
disable_delivery: true
my_website:
environment: "%locale%"