Difference between revisions of "Talk:Ns log"

From AOLserver Wiki
Jump to navigation Jump to search
(New page: 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 ...)
 
 
Line 11: Line 11:
  
 
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.
 
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.

Latest revision as of 16:36, 20 November 2008

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.