mise à niveau log
This commit is contained in:
parent
da4acb5c19
commit
b19b9a50c4
|
@ -1,6 +1,13 @@
|
|||
/var/www/html/ninestat/var/logs/*.log {
|
||||
rotate 5
|
||||
su root www-data
|
||||
daily
|
||||
su www-data
|
||||
rotate 7
|
||||
size 900
|
||||
maxage 7
|
||||
compress
|
||||
dateext
|
||||
dateformat -%Y%m%d
|
||||
missingok
|
||||
create 644 www-data www-data
|
||||
}
|
||||
|
||||
|
|
|
@ -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%'] }
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue