ApCoCoA:GetApCoCoAServerLogLevel

From CoCoAWiki
Jump to: navigation, search

<command> <title>GetApCoCoAServerLogLevel</title> <short_description>Retrieve current log level used by ApCoCoAServer.</short_description>

<syntax> GetApCoCoAServerLogLevel():INT </syntax>

<description> This function retrieves the log level that is currently used by the ApCoCoAServer for displaying log output. All log messages whose log level is greater than or equal to the log level will be displayed by the ApCoCoAServer. The log levels are (in order of ascending priority) 0 = FATAL, 1 = ERROR (default), 2 = WARNING, 3 = INFO, and 4 = DEBUG.

<itemize> <item>@return The log level currently used by the ApCoCoAServer.</item> </itemize>

<example> GetApCoCoAServerLogLevel();

1


-- Done.


</example>

</description>

<types>

</types>

<seealso>

<see>SetApCoCoAServerLogLevel</see>

</seealso>

<key>GetApCoCoAServerLogLevel</key> <key>logging</key> <key>log</key> </command>