ModSystemLogger
See the code atutils/logger.gd
Description
Inherits Object
ModSystemLogger
handles contextual logging for the Mod System.
Signals
None
Properties
None
Methods
mod_log
static func mod_log(mod: Mod, message: String) -> void
Logs the provided message to the console, with context about the calling Mod
. If ModSettings.enable_logging
is false
, nothing will be logged.
Note: This is a static method, intended to be called directly on the ModSystemLogger
class.
Parameters
Name | Type | Description |
---|---|---|
mod | Mod | The calling mod. |
message | String | The message to log. |
Returns
void
logs
static func logs(message: String) -> void
Logs the provided message to the console. If ModSettings.enable_logging
is false
, nothing will be logged.
Note: This is a static method, intended to be called directly on the ModSystemLogger
class.
Parameters
Name | Type | Description |
---|---|---|
message | String | The message to log. |
Returns
void