mod_log_rotate updated

I’ve just added the most requested feature to mod_log_rotate - the ability to specify a strftime() format string as the log file name. So now you can do something like

CustomLog logs/access_log.%Y%m%d-%H%M%S common

and have log files named with a human readable date and time. The source for both Apache 1.3 and Apache 2 (and 2.2) versions here. Steffan at apachelounge.com has made a Win32 binary available here: apachelounge.com/download.

4 Responses to “mod_log_rotate updated”

  1. TAL LUDER Says:

    Hello, is it a bug or plateform-dependant implementation ? on XP with Apache 2.2.3, impossible to have the time in log file name, %H %M %S are returning null values. I tried all args of strftime format , and all of them related to time are null values. Any idea ? greetings.

  2. Andy Says:

    I’m not sure to be honest - and I don’t have XP to test against. I’ll try to track down a Windows box and investigate further.

  3. Rob Champagne Says:

    I can confirm this problem exists on Windows 2000 Server sp4 patches current as of today.

  4. Andy Armstrong Says:

    I now have an XP box :)

    I’ll do some testing and see if I can find out what’s going on. Thanks for letting me know.

Leave a Reply


Copyright Andy Armstrong, 2005. Entries (RSS) and Comments (RSS).