Welcome! Log In Create A New Profile

Advanced

Re: log rotate

Maxim Dounin
May 09, 2011 07:12AM
Hello!

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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

log rotate

Jeff Pang May 09, 2011 07:00AM

Re: log rotate

Maxim Dounin May 09, 2011 07:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 306
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready