Ns accesslog

From AOLserver Wiki
Jump to navigation Jump to search

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


NAME

ns_accesslog - Control the nslog access log module

SYNOPSIS

ns_accesslog option ?arg arg ...?

DESCRIPTION

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.

EXAMPLES

   % ns_accesslog file
   /home/aolserver/servers/exampleServer/modules/nslog/access.log
   % ns_modulepath exampleServer nslog/access.log
   /home/aolserver/servers/exampleServer/modules/nslog/access.log
   # This will roll the access.log
   % ns_accesslog roll

SEE ALSO

ns_logroll, ns_modulepath

Category Documentation - Category Core Tcl API