logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_log_rotate updated
Author
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3117
Location: Hilversum, NL, EU

PostPosted: Tue 01 Aug '06 19:29    Post subject: mod_log_rotate updated Reply with quote

Andy has 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.

I made the Windows binary available here at the apache Lounge.

What is mod_log_rotate ?

If you host a lot of virtual servers on a single Apache box and use the supplied rotatelogs.exe program to rotate the logs you’ll notice that your process table is cluttered up with an instance of rotatelogs for each virtual server. With mod_log_rotate the log rotation is handled by the server process so you save a bunch of processes and file descriptors.


Enjoy,

Steffen
Back to top
Mitron



Joined: 04 Jan 2006
Posts: 63

PostPosted: Fri 28 Mar '08 7:30    Post subject: Re: mod_log_rotate updated Reply with quote

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


Are you getting the %H%M%S part to display something other than 000000? It seems that no matter what time the rotation process runs, the time always seems to be zeros. Am I missing something here?
Back to top


Reply to topic   Topic: mod_log_rotate updated View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules