From a165c879cc4a9090717dada609c28c91b213fc2b Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Wed, 11 Jan 2017 21:41:48 +0300 Subject: [PATCH] Monolog log rotation for prod environment. --- app/config/config_prod.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config/config_prod.yml b/app/config/config_prod.yml index 99a768f..19ff1a4 100644 --- a/app/config/config_prod.yml +++ b/app/config/config_prod.yml @@ -15,8 +15,9 @@ monolog: action_level: error handler: nested nested: - type: stream + type: rotating_file path: "%kernel.logs_dir%/%kernel.environment%.log" + max_files: 30 level: debug console: type: console