Skip to content
ct

Class

LogSink

Generated GDScript class reference for CalendarTime.LogSink.

Status
Current
Version
v2.0
Updated
Generated from GDScript addon source

LogSink — interface for plugin log routing. Note: GDScript doesn't have formal interfaces. LogSink is a Resource convention — games subclass it (or duck-type the methods) and inject via CalendarTimeLogger.set_logger(...). Games implement this to redirect Calendar Time's runtime output (errors, warnings, info) to their own logging destination — a log file, an in-game notification system, telemetry, silent, whatever. The plugin doesn't know or care; it just emits structured log events. All methods take a p_source string (e.g. "GameClock", "AgeService", "ClockValidator") so a game-side sink can filter by category.

Source: addons/calendar_time/utils/log_sink.gd

Syntax

class LogSink extends RefCounted

Members

NameKindSummary
errorMethod
warnMethod
infoMethod