Difference between revisions of "ApCoCoA-1:SetApCoCoAServerLogLevel"
From ApCoCoAWiki
(Corrected description. (Skaspar)) |
m (insert version info) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Version|1}} | ||
<command> | <command> | ||
<title>SetApCoCoAServerLogLevel</title> | <title>SetApCoCoAServerLogLevel</title> | ||
Line 8: | Line 9: | ||
<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 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> | + | 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>FATAL</tt>, 1 = <tt>ERROR</tt> (default), 2 = <tt>WARNING</tt>, 3 = <tt>INFO</tt>, and 4 = <tt>DEBUG</tt>. The function returns the log level previously used by the ApCoCoAServer. |
<itemize> | <itemize> | ||
Line 30: | Line 31: | ||
<seealso> | <seealso> | ||
− | <see>GetApCoCoAServerLogLevel</see> | + | <see>ApCoCoA-1:GetApCoCoAServerLogLevel|GetApCoCoAServerLogLevel</see> |
</seealso> | </seealso> | ||
Line 37: | Line 38: | ||
<key>log</key> | <key>log</key> | ||
− | [[Category:ApCoCoA Manual|{{PAGENAME}}]] | + | [[Category:ApCoCoA-1 Manual|{{PAGENAME}}]] |
</command> | </command> |
Latest revision as of 10:34, 7 October 2020
This article is about a function from ApCoCoA-1. |
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 = FATAL, 1 = ERROR (default), 2 = WARNING, 3 = INFO, 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