Skip to content

Logger

Defined in: Logger.ts:47

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

new Logger(config?): Logger

Defined in: Logger.ts:57

LoggerConfig

Logger

clear(): void

Defined in: Logger.ts:118

Clear the ring buffer.

void


debug(category, message, data?): void

Defined in: Logger.ts:71

Log a debug message.

string

string

unknown

void


error(category, message, data?): void

Defined in: Logger.ts:86

Log an error message.

string

string

unknown

void


formatRecentLogs(count?): string

Defined in: Logger.ts:106

Format recent logs as structured text for agent consumption.

number

string


getRecent(count?): LogEntry[]

Defined in: Logger.ts:91

Get recent log entries from the ring buffer.

number

LogEntry[]


info(category, message, data?): void

Defined in: Logger.ts:76

Log an info message.

string

string

unknown

void


setFrame(frame): void

Defined in: Logger.ts:66

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

number

void


warn(category, message, data?): void

Defined in: Logger.ts:81

Log a warning message.

string

string

unknown

void