Talk:Ns log

From AOLserver Wiki
Revision as of 16:36, 20 November 2008 by Josephbui (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I get the following error message that indicates some additional functionality in ns_log.

  unknown severity: "dev": should be notice, warning, error, fatal, bug, debug or integer value

I tried using "dev" because in the annotated configuration file http://www.aolserver.com/docs/admin/config-reference.tcl.txt there is a mention that it is an option.

  ns_section "ns/parameters"
  # ...
  # Server logging
  ns_param   dev             true      ;# Display logging with "Dev" severity

Yet, when I try "ns_log 1 foo" I don't see anything in the server log file. I don't get an error either.

Ok: 0 is notice, 1 is warning, 2 is error, 3 is fatal, 4 is bug, 5 is debug. Any other integer value does not get written to the log or entered into the log queue if you happen to be using ns_logctl to control writing of log messages.