|
|
|
|
#1 |
|
Junior Member
|
Daily/Weekly W3C Logging Options
Any chance of having an option to break up the logging files to either daily or weekly logs - the current way of just putting them in one massive file is meaning i've got to (briefly) take the server down so i can archive the logs and run stats on them.
Or am I missing something? Is there already a way to do this? Thanks. |
|
|
|
|
|
#2 |
|
Member
|
If you are on Win32 find someone who is using Apache on Win32 and grab a copy of rotatelog.exe. You can use this in the same way that Apache does.
If you are on unix/linux you should try a shell script such as: code: You can then call this script whenever you want via cron. -L"k" |
|
|
|
|
|
#3 |
|
Junior Member
|
How exactly does rotatelog.exe work then??
|
|
|
|
|
|
#4 | |
|
Member
|
directly from the command line output from rotatelogs (with small SC edits):
Usage: rotatelogs.exe <logfile> <rotation time in seconds> [offset minutes from UTC] or <rotation size in megabytes> Config like this: W3CLog="|rotatelogs.exe /some/where 86400" or W3CLog="|rotatelogs.exe /some/where 5M" The generated name will be /some/where.nnnn where nnnn is the system time at which the log nominally starts (N.B. if using a rotation time, the time will always be a multiple of the rotation time, so you can synchronize cron scripts with it). At the end of each rotation time or when the file size is reached a new log is started. Like I said before though - this is all guesstimation... -L"k" Quote:
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|