I have a strange problem:
I use Apache on Windows and tried to configure rotating log using mod_log_rotate with the following configuration:
RotateLogs On
RotateLogsLocalTime On
RotateInterval 86400
CustomLog "C:\logdir\access_%d-%m-%Y-%H-%M-%S.log" common
However this results in a file named as follows:
access_03-05-2013-00-00-00.log
So it works for the date-part, i.e. %d, %m, %Y, but does not work for the parts below date, i.e. hour, minute, second via %H, %H, %S.
According to the source of mod_log_rotate, it uses apr_strftime(), which itself seems to use strftime(). I also looked at Microsofts implementation of strftime, it seems to support the same elements.
So how comes it cannot replace those hour/minute/second items? Is this a Window-specific restriction?