Chris' Tutorials
Docs/Calendar Time

Class

CalendarTimeLogger

Generated GDScript class reference for CalendarTime.CalendarTimeLogger.

StatusCurrent
Versionv2.0
UpdatedGenerated from GDScript addon source
Source note:This page rendered plugin-owned docs or generated metadata inside unified Astro docs shell.

CalendarTimeLogger — static-singleton plugin log facade. One per plugin (one per static class). Any addon script routes runtime output through CalendarTimeLogger.error("Source", msg) instead of Godot's push_error so the game can redirect, filter, or suppress it. Games inject their own LogSink via CalendarTimeLogger.set_logger(...) at boot. Default behavior (no injection): routes through Godot's push_error / push_warning / print so existing editor + stderr output is preserved. Pattern: static singleton, not per-instance injection. Reasons:

  • Plugins shouldn't need to wire a logger into every script (refcounts, save/load, validators, services, etc.).
  • Games boot the plugin once and set the logger once — every subsequent CalendarTimeLogger.error(...) call lands on the game's destination.
  • Keeps the call site identical to push_error: CalendarTimeLogger.error( "AgeService", "no clock") vs push_error("..."). No new constructor parameters, no scene wiring. Usage: # In your game's bootstrap: CalendarTimeLogger.set_logger(MyGameLogger.new()) # Anywhere in the addon: CalendarTimeLogger.error("GameClock", "calendar is null") CalendarTimeLogger.warn("AgeService", "REAL_TIME_ELAPSED not supported on Resource") Addon runtime code should call this facade, not Godot logging directly. The default logger preserves editor/stderr output when no game logger is installed.

Source: addons/calendar_time/utils/calendar_time_logger.gd

Syntax

class CalendarTimeLogger extends RefCounted

Members

NameKindSummary
set_loggerMethod
get_loggerMethod
errorMethod
warnMethod
infoMethod
errorMethod
warnMethod
infoMethod

Source

addons/calendar_time/utils/calendar_time_logger.gd

Plugin docs root:gdscript/plugins/calendar_time_dev/docs