Skip to content

Logger

Defined in: Logger.ts:69

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

new Logger(config?): Logger

Defined in: Logger.ts:80

LoggerConfig

Logger

clear(): void

Defined in: Logger.ts:144

Clear the ring buffer.

void


debug(category, message, data?): void

Defined in: Logger.ts:97

Log a debug message.

string

string

unknown

void


error(category, message, data?): void

Defined in: Logger.ts:112

Log an error message.

string

string

unknown

void


formatRecentLogs(count?): string

Defined in: Logger.ts:132

Format recent logs as structured text for agent consumption.

number

string


getRecent(count?): LogEntry[]

Defined in: Logger.ts:117

Get recent log entries from the ring buffer.

number

LogEntry[]


info(category, message, data?): void

Defined in: Logger.ts:102

Log an info message.

string

string

unknown

void


setFrame(frame): void

Defined in: Logger.ts:92

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

number

void


warn(category, message, data?): void

Defined in: Logger.ts:107

Log a warning message.

string

string

unknown

void