Skip to main content

ModSystemLogger

See the code at utils/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

NameTypeDescription
modModThe calling mod.
messageStringThe 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

NameTypeDescription
messageStringThe message to log.

Returns

void