1
我已阅读了一些文档here,但仍不清楚如何编写和使用自定义Monolog处理程序和通道。让我稍微解释一下我想达到的目标。我有一个自定义函数,我希望该日志被记录到一个名为custom.log
的文件中。如何编写和使用Monolog处理程序和通道
monolog:
handlers:
#Logs Doctrine to a different channel
doctrine:
level: debug
type: stream
path: "%kernel.logs_dir%/doctrine.log"
channels: [doctrine]
如何实现一个custom.log
相同的:我已经在config.yml
文件中设置启用此功能主义日志记录到另一个文件?