Kryzeth Standard Library

StdLib.Misc.Log

Methods2

function Log.log(msg: table | string) -> StdLib.Misc.Log

Logs a message.

Parameters
msgtable | string

the message to log. @{table}s will be dumped using serpent which is included in the official Factorio Lualib @return (<span class="types">@{Logger}</span>) the logger instance @see https://forums.factorio.com/viewtopic.php?f=25&t=23844 Debugging utilities built in to Factorio

Returns
function Log.write() -> StdLib.Misc.Log

Writes out all buffered messages immediately. @return (<span class="types">@{Logger}</span>) the logger instance

Fields9

Log.__class: string = "Log"
Log.mod_name : any
Log.log_name : string
Log.debug_mode : nil | boolean
Log.buffer: table
Log.last_written: integer = 0
Log.ever_written: false
Log.options : StdLib.Misc.Log.options
Log.file_name : string