Difference between revisions of "ApCoCoA-1:SetApCoCoAServerLogLevel"

From ApCoCoAWiki
(Corrected description. (Skaspar))
Line 8: Line 8:
  
 
<description>
 
<description>
This function sets the log level that is used by the ApCoCoAServer for displaying log output. All log messages whose log level is greater than or equal to the log level <tt>Lvl</tt> will be displayed by the ApCoCoAServer after a call to this function. Available log levels are (in order of ascending priority) 0 = <tt>ERROR</tt> (default), 1 = <tt>WARN</tt>, 2 = <tt>INFO</tt>, 3 = <tt>VERBOSE</tt>, and 4 = <tt>DEBUG</tt>. The function returns the log level previously used by the ApCoCoAServer.  
+
This function sets the log level that is used by the ApCoCoAServer for displaying log output. All log messages whose log level is less than or equal to the log level <tt>Lvl</tt> will be displayed by the ApCoCoAServer after a call to this function. Available log levels are (in order of ascending priority) 0 = <tt>ERROR</tt> (default), 1 = <tt>WARN</tt>, 2 = <tt>INFO</tt>, 3 = <tt>VERBOSE</tt>, and 4 = <tt>DEBUG</tt>. The function returns the log level previously used by the ApCoCoAServer.  
  
 
<itemize>
 
<itemize>

Revision as of 10:57, 19 October 2010

SetApCoCoAServerLogLevel

Influences the amount of log output of ApCoCoAServer.

Syntax

SetApCoCoAServerLogLevel(Lvl:INT):INT

Description

This function sets the log level that is used by the ApCoCoAServer for displaying log output. All log messages whose log level is less than or equal to the log level Lvl will be displayed by the ApCoCoAServer after a call to this function. Available log levels are (in order of ascending priority) 0 = ERROR (default), 1 = WARN, 2 = INFO, 3 = VERBOSE, and 4 = DEBUG. The function returns the log level previously used by the ApCoCoAServer.

  • @param Lvl The new log level to be used by the ApCoCoAServer.

  • @return The log level previously used by the ApCoCoAServer.

Example

SetApCoCoAServerLogLevel(1);

0
-------------------------------
-- Done.
-------------------------------



See also

GetApCoCoAServerLogLevel