From 40ab9ad0013cf80e31c4eefaf46a6e3ffb815061 Mon Sep 17 00:00:00 2001 From: afornerot Date: Mon, 19 Oct 2020 10:27:19 +0200 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20niveau=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logrotate/ninegate | 14 ++++++++------ src/ninegate-1.0/app/config/config.yml | 8 -------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/logrotate/ninegate b/logrotate/ninegate index 268cbb73..3cf908ab 100644 --- a/logrotate/ninegate +++ b/logrotate/ninegate @@ -1,11 +1,13 @@ /var/www/html/ninegate/var/logs/*.log { - maxsize 50M + su root www-data daily - missingok - rotate 5 + rotate 7 + size 900 + maxage 7 compress - notifempty - nocreate - su www-data + dateext + dateformat -%Y%m%d + missingok + create 644 www-data www-data } diff --git a/src/ninegate-1.0/app/config/config.yml b/src/ninegate-1.0/app/config/config.yml index 002c8a93..b538cc8f 100644 --- a/src/ninegate-1.0/app/config/config.yml +++ b/src/ninegate-1.0/app/config/config.yml @@ -13,14 +13,6 @@ imports: parameters: locale: fr -monolog: - handlers: - main: - type: rotating_file - path: '%kernel.logs_dir%/%kernel.environment%.log' - level: error - max_files: 5 - framework: #esi: ~ #translator: { fallbacks: ['%locale%'] }