Skip to content

Logger

Defined in: Logger.ts:72

Structured logger with ring buffer, levels, and category filtering.

new Logger(config?): Logger

Defined in: Logger.ts:83

LoggerConfig

Logger

clear(): void

Defined in: Logger.ts:146

Clear the ring buffer.

void


debug(category, message, data?): void

Defined in: Logger.ts:100

Log a debug message.

string

string

unknown

void


error(category, message, data?): void

Defined in: Logger.ts:115

Log an error message.

string

string

unknown

void


formatRecentLogs(count?): string

Defined in: Logger.ts:134

Format recent logs as structured text for agent consumption.

number

string


getRecent(count?): LogEntry[]

Defined in: Logger.ts:120

Get recent log entries from the ring buffer.

number

LogEntry[]


info(category, message, data?): void

Defined in: Logger.ts:105

Log an info message.

string

string

unknown

void


setFrame(frame): void

Defined in: Logger.ts:95

Set the current frame number (incremented externally by the game loop).

number

void


warn(category, message, data?): void

Defined in: Logger.ts:110

Log a warning message.

string

string

unknown

void

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.