Перейти к содержимому
Русский

Logger

Это содержимое пока не доступно на вашем языке.

Defined in: src/Logger.ts:12

readonly level: LogLevel

Defined in: src/Logger.ts:13

debug(message, …args): void

Defined in: src/Logger.ts:14

string

…unknown[]

void


error(message, …args): void

Defined in: src/Logger.ts:17

string

…unknown[]

void


info(message, …args): void

Defined in: src/Logger.ts:15

string

…unknown[]

void


warn(message, …args): void

Defined in: src/Logger.ts:16

string

…unknown[]

void


withFields(fields): Logger

Defined in: src/Logger.ts:27

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:19

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

string

Logger