【发布时间】:2015-04-15 21:19:44
【问题描述】:
我经常看到一堆以下日志:
[2015-02-15 09:08:16] request.INFO: Matched route "AppMainBundle_daftar_toko_province" (parameters: "_controller": "App\MainBundle\Controller\ZHomepageController::daftarTokoAction", "provinceName": "DKI JAKARTA", "_route": "AppMainBundle_daftar_toko_province") [] []
[2015-02-15 09:08:16] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2015-02-15 09:08:16] security.DEBUG: Write SecurityContext in the session [] []
在我的 prod.log 中,如何禁用它,我只想查看错误。这是我的独白设置:
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: file
excluded_404s:
- ^/items/
file:
type: stream
level: debug
doctrine:
action_level: debug
type: stream
path: %kernel.logs_dir%/doctrine_%kernel.environment%.log
channels: doctrine
【问题讨论】:
标签: php symfony logging monolog