MIST logger setLevel

From DCS World Wiki - Hoggitworld.com


yourLogger:setLevel

Added with: Mist 4.2
Description
Changes the log level of the current logger object. This function can be useful if tied to user commanded functions to change log level.
Syntax
nothing yourLogger:setLevel(string/number level )
Valid Input Values:
Level can be either a string or a number. The following numbers and string values are the only acceptable values:
 0 = 'none' or 'off'
 1 = 'error'
 2 = 'warning'
 3 = 'info'
Return value:
nothing
Return example:
Usage Examples:
The following are different ways to set the level of a logger.
 myLogger:setLevel(1)
 myOtherLogger:setLevel('off')
Notes:
Related Functions
new, setLevel, msg, info, warn, error, alert

Scripting Engine

MIST Root Page