это моя текущая конфигурация журнала в monolog.yaml:
Код: Выделить всё
when@dev:
monolog:
handlers:
main:
type: rotating_file
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
# 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
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]
тип: вращающийся_файл
но не знаю, как сделать эту ротацию ежемесячно
Подробнее здесь: https://stackoverflow.com/questions/789 ... ymfony-5-4
Мобильная версия