Forum OpenACS Q&A: Rolling the server log

Collapse
Posted by Robert Schlaff on
Sorry to ask such a stupid question but...

My AOLserver log doesn't seem to roll (and it hasn't since the server
was installed). These what I think the relevant lines in my nsd.tcl
say:

ns_section "ns/parameters"
        ns_param  ServerLog    ${homedir}/log/server.log
        ns_param  LogRoll      on

ns_section "ns/server/${server}/module/nslog"
        ns_param  rolllog        true      ;# Should we roll log?
        ns_param  rollonsignal    true      ;# Roll log on SIGHUP
        ns_param  rollhour        0        ;# Time to roll log
        ns_param  maxbackup      5        ;# Max number to keep
around when rolling

Collapse
Posted by Dave Bauer on
Please supply you AOLserver version. Anyway mine works here is my nslog section of the .tcl file:
ns_section "ns/server/deepsky/module/nslog"                                    
ns_param EnableHostnameLookup "Off"                                            
ns_param File         "/home/aol30/log/deepsky.log"                            
ns_param LogCombined  "On"                                                     
ns_param LogRefer     "Off"                                                    
ns_param LogUserAgent "Off"                                                    
ns_param MaxBackup    "5"                                                      
ns_param RollDay      "*"                                                      
ns_param RollFmt      "%Y-%m-%d-%H:%M"                                         
ns_param RollHour     "0"                                                      
ns_param RollOnSignal "On"                                                     
ns_param RollLog      "On"   


My version has different parameters. I am not sure where I got it from at this point, but I use the same format for several servers.


PS. Please put 
 tags around code samples, otherwise they get bunched up. (and specify HTML when you submit the item)
Collapse
Posted by Robert Schlaff on
Sorry, this was for AOLServer 3.0

ns_section "ns/parameters"
ns_param ServerLog ${homedir}/log/server.log
ns_param LogRoll on

ns_section "ns/server/${server}/module/nslog"
ns_param rolllog true ;# Should we roll log?
ns_param rollonsignal true ;# Roll log on SIGHUP
ns_param rollhour 0 ;# Time to roll log
ns_param maxbackup 5 ;# Max number to keep around when rolling