From 2f4a83d36691880f524ea239badc3b03c724b5c9 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 9 Jan 2017 04:07:27 +0300 Subject: [PATCH] Monolog log rotation in dev environment. --- app/config/config_dev.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config/config_dev.yml b/app/config/config_dev.yml index eddf54e..937b077 100644 --- a/app/config/config_dev.yml +++ b/app/config/config_dev.yml @@ -14,8 +14,9 @@ web_profiler: monolog: handlers: main: - type: stream + type: rotating_file path: "%kernel.logs_dir%/%kernel.environment%.log" + max_files: 5 level: debug channels: [!event] console: