MIST logger msg

From DCS World Wiki - Hoggitworld.com


Added with: Mist 4.2
Error logs are prefixed with 'INFO' in DCS.log. Will always be logged no matter the level.

The special character "$n" value allows for easy concatenation of the info message. n being a number.

object yourLogger:msg(string warning , table/multipleValues params )
Valid Input Values:
String must be any valid string entry.

Param can either be a table or multiple values. Entries will always correspond to the $n characters. For example $1 will always be the first table entry or first optional param.

Return value:
Return example:
Usage Examples:
The following are different ways to make a logger.
 local myLog = mist.Logger:new('yourScript')
 myLog:msg("Script Init and Loaded")
Related Functions
new, setLevel, msg, info, warn, error, alert

Scripting Engine

MIST Root Page