NoopLogger
Defined in: src/Logger.ts:82
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:83
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”debug()
Section titled “debug()”debug():
void
Defined in: src/Logger.ts:84
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”error()
Section titled “error()”error():
void
Defined in: src/Logger.ts:87
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”info()
Section titled “info()”info():
void
Defined in: src/Logger.ts:85
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”warn()
Section titled “warn()”warn():
void
Defined in: src/Logger.ts:86
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”withFields()
Section titled “withFields()”withFields():
Logger
Defined in: src/Logger.ts:89
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:88
Create a logger bound to a source (e.g. an actor path).