NoopLogger
Ce contenu n’est pas encore disponible dans votre langue.
Defined in: src/Logger.ts:110
A logger that discards every call. Handy for tests and benchmarks.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NoopLogger():
NoopLogger
Returns
Section titled “Returns”NoopLogger
Properties
Section titled “Properties”
readonlylevel:Off=LogLevel.Off
Defined in: src/Logger.ts:111
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”debug()
Section titled “debug()”debug():
void
Defined in: src/Logger.ts:112
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”error()
Section titled “error()”error():
void
Defined in: src/Logger.ts:115
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”info()
Section titled “info()”info():
void
Defined in: src/Logger.ts:113
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”warn()
Section titled “warn()”warn():
void
Defined in: src/Logger.ts:114
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”withFields()
Section titled “withFields()”withFields():
Logger
Defined in: src/Logger.ts:117
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.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”withSource()
Section titled “withSource()”withSource():
Logger
Defined in: src/Logger.ts:116
Create a logger bound to a source (e.g. an actor path).
