Created
June 11, 2015 13:14
-
-
Save xtrasmal/664a35d0b2b10b1c6290 to your computer and use it in GitHub Desktop.
logrotate symfony
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cd /etc/logrotate.d && touch symfony && nano symfony | |
/var/www/sitename/app/logs/dev.log { | |
monthly | |
missingok | |
rotate 4 | |
compress | |
sharedscripts | |
copytruncate | |
size 100M | |
} | |
/var/www/sitename/app/logs/prod.log { | |
monthly | |
missingok | |
rotate 4 | |
compress | |
sharedscripts | |
copytruncate | |
size 100M | |
} |
Hello I would like to create the log files whose name would include the date of the day in symfony4 but I dry the top is there a possibility to do it?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this settings.
If you want you can use wildcard like this
/var/www/sitename/app/logs/*.log
.Like this, if you use different channels on monolog you can apply logrotate on all log files