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%'] }