mise à niveau log

This commit is contained in:
afornerot 2020-10-19 10:44:33 +02:00
parent da4acb5c19
commit b19b9a50c4
3 changed files with 13 additions and 11 deletions

View File

@ -1,6 +1,13 @@
/var/www/html/ninestat/var/logs/*.log {
rotate 5
daily
su www-data
su root www-data
daily
rotate 7
size 900
maxage 7
compress
dateext
dateformat -%Y%m%d
missingok
create 644 www-data www-data
}

View File

@ -11,14 +11,6 @@ imports:
parameters:
locale: fr
monolog:
handlers:
main:
type: rotating_file
path: '%kernel.logs_dir%/%kernel.environment%.log'
level: debug
max_files: 10
framework:
#esi: ~
#translator: { fallbacks: ['%locale%'] }

View File

@ -1,5 +1,8 @@
#!/bin/bash
# Suppression des logs trop ancien
find var/logs -mindepth 1 -mtime +7 -delete
# Installation des dépendances composer
composer install