mwseLoggerRecord⚓︎
Holds information about the context in which a logging message was created. This is currently only used when formatting log messages. This structure makes it easier to specify custom formatters.
Properties⚓︎
level⚓︎
The logging level of this message. (e.g, if Logger:info was called, then this will be mwseLogger.logLevel.info.)
Returns:
result(mwseLogger.logLevel)
lineNumber⚓︎
The linenumber that triggered this record to be created.
Will be false if the "Enable Log Line Numbers" MWSE setting is disabled.
Returns:
result(integer, false)
stackLevel⚓︎
The stack level offset at the time of record creation. This information can be used when calling debug.getinfo in custom formatters.
Returns:
result(integer)
timestamp⚓︎
The timestamp associated to this record. This is obtained directly from socket.gettime(). In particular, it captures the current real-world time, rather than the amount of time since the game launched.
Will be false when Logger.includeTimestamp is false.
Returns:
result(number, false)