gpt4 book ai didi

symfony - 禁用 DEBUG 日志中的 "notified event"消息

转载 作者:行者123 更新时间:2023-12-03 00:18:01 24 4
gpt4 key购买 nike

分析我的实际开发日志是一项痛苦的工作,因为有大量的“event.DEBUG:通知事件...”消息。有人知道如何禁用调度程序通知日志吗?

提前致谢!

最佳答案

您可以使用 channel 来忽略事件。

  monolog:      handlers:          main:              type:  stream              path:  "%kernel.logs_dir%/%kernel.environment%.log"              level: debug              channels: "!event"

在此处查看详细信息:http://symfony.com/doc/current/cookbook/logging/channels_handlers.html#yaml-specification

关于symfony - 禁用 DEBUG 日志中的 "notified event"消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16600844/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com