log
Writes to the server log.
Source: src/Moongate.Scripting/Modules/LogModule.cs
Functions
Section titled “Functions”log.debug(message, ...)Logs at DEBUG: the message is a Serilog template whose properties the extra arguments fill.
| Parameter | Type | Default |
|---|---|---|
message | string | |
... | any |
log.error(message, ...)Logs at ERROR: the message is a Serilog template whose properties the extra arguments fill.
| Parameter | Type | Default |
|---|---|---|
message | string | |
... | any |
log.info(message, ...)Logs at INFO: the message is a Serilog template whose properties the extra arguments fill.
| Parameter | Type | Default |
|---|---|---|
message | string | |
... | any |
warning
Section titled “warning”log.warning(message, ...)Logs at WARNING: the message is a Serilog template whose properties the extra arguments fill.
| Parameter | Type | Default |
|---|---|---|
message | string | |
... | any |
Constants
Section titled “Constants”| Name | Type | Value | Description |
|---|---|---|---|
LEVEL_DEBUG | integer | 1 | Numeric value of the Serilog Debug level. |
LEVEL_ERROR | integer | 4 | Numeric value of the Serilog Error level. |
LEVEL_INFO | integer | 2 | Numeric value of the Serilog Information level. |
LEVEL_WARNING | integer | 3 | Numeric value of the Serilog Warning level. |
Made with ❤️ by Tom
