Logger
The logger
is the entry point for functions to do with logging to DCS.log. You can access it via yams.logger
.
logger:info
Writes an info level message to the DCS Log.
param | type | summary |
---|---|---|
message | string | The message you want to print into the log file. |
logger:warn
Writes a warning level message to the DCS Log.
param | type | summary |
---|---|---|
message | string | The message you want to print into the log file. |
logger:error
Writes an error level message to the DCS Log.
param | type | summary |
---|---|---|
message | string | The message you want to print into the log file. |
]] function log:error(message) env.error(log.context .. " " .. message, false) end
--[[ logger:set_context