MIST logger info

From DCS World Wiki - Hoggitworld.com
Revision as of 23:17, 13 April 2018 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


yourLogger:info

Added with: Mist 4.2
Description
Error logs are prefixed with 'INFO' in DCS.log. Will be logged at level is 3 or greater.

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

Syntax
nothing yourLogger:info(string info , 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:
nothing
Return example:
Usage Examples:
The following creates a logger and displays a info log message that most people should know.
 local someDeadGuy = mist.Logger:new('Goose', 3)
 someDeadGuy:info("No, there are two Os in Goose.")
Notes:
Related Functions
new, setLevel, msg, info, warn, error, alert

Scripting Engine

MIST Root Page