Log rotate

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.

Thanks.


Jeff P.
www.DNSbed.com

Hello!

On Mon, May 09, 2011 at 06:58:12PM +0800, Jeff P. 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 D.