Ns accesslog

From AOLserver Wiki
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_accesslog.html


ns_accesslog - Control the nslog access log module


ns_accesslog option ?arg arg ...?


This command provides a mechanism to control the nslog access log module.
The legal options (which may be abbreviated) are:
  • ns_accesslog file
Returns the name of the access log file for the current (possibly virtual) server. The default is relative to the server's module directory in "nslog/access.log".
  • ns_accesslog roll ?file?
Rolls the access log, or optionally some other file. See ns_logroll for log rolling behavior. However, instead of the max backup being specified in "ns/parameters" as "logmaxbackup", it is specified in section "ns/server/$servername/module/nslog" as "maxbackup" and defaults to 100.


   % ns_accesslog file
   % ns_modulepath exampleServer nslog/access.log
   # This will roll the access.log
   % ns_accesslog roll


ns_logroll, ns_modulepath

Category Documentation - Category Core Tcl API