Skip to content

log

Writes to the server log.

Source: src/Moongate.Scripting/Modules/LogModule.cs

log.debug(message, ...)

Logs at DEBUG: the message is a Serilog template whose properties the extra arguments fill.

ParameterTypeDefault
messagestring
...any
log.error(message, ...)

Logs at ERROR: the message is a Serilog template whose properties the extra arguments fill.

ParameterTypeDefault
messagestring
...any
log.info(message, ...)

Logs at INFO: the message is a Serilog template whose properties the extra arguments fill.

ParameterTypeDefault
messagestring
...any
log.warning(message, ...)

Logs at WARNING: the message is a Serilog template whose properties the extra arguments fill.

ParameterTypeDefault
messagestring
...any
NameTypeValueDescription
LEVEL_DEBUGinteger1Numeric value of the Serilog Debug level.
LEVEL_ERRORinteger4Numeric value of the Serilog Error level.
LEVEL_INFOinteger2Numeric value of the Serilog Information level.
LEVEL_WARNINGinteger3Numeric value of the Serilog Warning level.

Made with ❤️ by Tom

Buy me a coffee