Skip to content
ct

Class

ItemVaultLogSink

Generated GDScript class reference for ItemVault.ItemVaultLogSink.

Status
Draft
Version
v1.0
Updated
Development docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

ItemVaultLogSink — interface for ItemVault log routing. Games subclass this and inject an instance via [method ItemVaultLogger.set_log_sink] to redirect ItemVault's runtime output (errors, warnings, info) into their own logging destination — a log file, in-game notification surface, telemetry sink, or silent drop. The plugin doesn't know or care; it just emits structured log events. All methods take a p_source string (e.g. "InventorySave", "PickupsCollector2D", "MoveOnSpawn") so a game-side sink can filter by category. Note: GDScript has no formal interfaces. This is a RefCounted convention; callers should subclass [ItemVaultLogSink] and implement [method error], [method warn], and [method info].

Source: addons/item_vault/logging/item_vault_log_sink.gd

Syntax

class ItemVaultLogSink extends RefCounted

Members

NameKindSummary
errorMethod
warnMethod
infoMethod