log rotate

Maxim Dounin mdounin at mdounin.ru
Mon May 9 15:11:24 MSD 2011


On Mon, May 09, 2011 at 06:58:12PM +0800, Jeff Pang wrote:

> Hi,
> Does nginx support the feature of logrotate by log4j format?
> log4j is rotate the log files by each date and rename the old logs
> with log_name.YYYY-MM-DD.

nginx doesn't do any log rotation by itself.  You have to rename 
logs yourself (or with your favorite logrotate tool) and send USR1 
signal to nginx to instruct it to reopen log files.

Maxim Dounin

More information about the nginx mailing list