Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: mod_log_rotate updated |
|
Author |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3117 Location: Hilversum, NL, EU
|
Posted: Tue 01 Aug '06 19:29 Post subject: mod_log_rotate updated |
|
|
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
|
Posted: Fri 28 Mar '08 7:30 Post subject: Re: mod_log_rotate updated |
|
|
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 |
|
|
|
|
|
|