Can Apache be configured to write to access.log or error.log with a different extension?

Posted by Mohan Gulati on Server Fault See other posts from Server Fault or by Mohan Gulati
Published on 2010-03-08T19:15:17Z Indexed on 2010/03/08 19:21 UTC
Read the original article Hit count: 351

One of the things that I am investigating is using the dateext option for logrotate. However if I understood things correctly apache will keep writing to the files access.log and error.log.

I was wondering if there was a way to have apache log to a file access.log.YYYYMMDD and error.log.YYYYMMDD instead? Where YYYYMMDD would be the timestamp when the file was created.

© Server Fault or respective owner

Related posts about apache

Related posts about logrotate