This mod adds a simple, reusable GDScript API for logging.
Usage
# MyScript.gd
extends Node
const Debug = preload("res://mods/DebugAPI/Debug.gd")
var debug = Debug.new("MyCustomMod", self)
func _ready():
debug.log("This is an info message.")
debug.warn("This is a warning message.")
debug.error("This is an error message.")
Output
[2026-04-12T20:12:50Z][MyCustomMod][MyScript.gd] Info: This is an info message.
[2026-04-12T20:12:50Z][MyCustomMod][MyScript.gd] Warning: This is a warning message.
[2026-04-12T20:12:50Z][MyCustomMod][MyScript.gd] Error: This is an error message.