Difference between revisions of "MIST logger msg"
From DCS World Wiki - Hoggitworld.com
(No difference)
|
Latest revision as of 23:17, 13 April 2018
yourLogger:msg
| Added with: Mist 4.2 |
| Description |
| 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. |
| Syntax |
| 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: |
| object |
| 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")
|
| Notes: |
| Related Functions |
| new, setLevel, msg, info, warn, error, alert |
