Showing posts with label symfony 1.4 log rotation. Show all posts
Showing posts with label symfony 1.4 log rotation. Show all posts

symfony 1.4 log rotation

Execute following command on your project root folder:

php symfony log:rotate frontend prod --period=1 --history=5

In above command,

period 1 means:

frontend_prod.log contains 1 day log data and very next day backup of same file will be saved under log/history folder and also empty it.

history 5 means:

Under log/history folder, backup of 5 days will be stored only.