且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Symfony2 中使用 Monolog 进行日志轮换

更新时间:2023-11-19 22:34:40

有一个记录器叫做 rotating_file.
这是一个示例配置:

There is a logger called rotating_file.
Here is a sample configuration:

monolog:
    handlers:
        main:
            type:  rotating_file
            path:  %kernel.logs_dir%/%kernel.environment%.log
            level: debug