- web server log uses "strftime( dateStr, sizeof(dateStr), "%Y-%m-%U-%w", date );" to generate web server log file names. The log file will 'roll-over' whenever the name changes.
- strftime encoding is also used by the SPML #log and #include commands.
- logs roll-over soon after midnite
sample name for weekly log files:
WebServer %Y-%U.log converts to WebServer 1998-05.log
sample name for monthly log files:
WebServer %Y-%m.log converts to WebServer 1998-02.log
sample name for daily log files:
WebServer %Y-%m-%d.log converts to WebServer 1998-02-03.log
%Y - full year ( as is 1998 ) %m - 2 digit month number ( Jan = 01 ) %U - week of the year (01-53) The week number changes on Sundays and the First day of the year.
%w - day (1 digit) of the week ( Sun = 0, Sat = 6 ) %d - day (2 digit) of the month ( 01-31 )
>Feature request > >In TF 5.7 server could the webserver log be changed to monthly, ie month >1,2,3 etc... The idea being on the 1'st of the month the server starts a new >log (much like the mailserver does a daily log), setup would allow keeping 12 >log files (ie a complete years trafic). This would make stats preperation a >lot easier. > >There you go Rusty, a nice wee tweek request > >Best regards >Ken Sutherland > \|/ > (@ @) >_______________________________o00_(_)_00o___________________________________ > Ken.Sutherland@Highlander.net.uk WWW - www.highlander.net.uk > Highlander BBS - Highlander Data Systems - MaxTF Utilities > Dialup Node - (44) 0141 876 0966 Internet Node - BBS.Highlander.net.uk > MacOS For People With An IQ Over 98 >_____________________________________________________________________________