Skip to content

Logger

Defined in: src/Logger.ts:11

readonly level: LogLevel

Defined in: src/Logger.ts:12

debug(message, …args): void

Defined in: src/Logger.ts:13

string

unknown[]

void


error(message, …args): void

Defined in: src/Logger.ts:16

string

unknown[]

void


info(message, …args): void

Defined in: src/Logger.ts:14

string

unknown[]

void


warn(message, …args): void

Defined in: src/Logger.ts:15

string

unknown[]

void


withFields(fields): Logger

Defined in: src/Logger.ts:26

Create a logger with extra static fields baked in. Unlike LogContext (which is dynamic / per-async-stack), withFields stamps the same fields on every record this logger emits — handy for component-level tagging like { component: 'shard-coordinator' } or { shardId: 12 } on a per-entity logger.

LogContextData

Logger


withSource(source): Logger

Defined in: src/Logger.ts:18

Create a logger bound to a source (e.g. an actor path).

string

Logger