ConsoleLogger
Defined in: src/Logger.ts:29
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ConsoleLogger(
level?,source?,staticFields?):ConsoleLogger
Defined in: src/Logger.ts:30
Parameters
Section titled “Parameters”level?
Section titled “level?”LogLevel = LogLevel.Info
source?
Section titled “source?”string = ''
staticFields?
Section titled “staticFields?”LogContextData = {}
Returns
Section titled “Returns”ConsoleLogger
Properties
Section titled “Properties”level:
LogLevel=LogLevel.Info
Defined in: src/Logger.ts:31
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”debug()
Section titled “debug()”debug(
msg, …args):void
Defined in: src/Logger.ts:59
Parameters
Section titled “Parameters”string
…unknown[]
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”error()
Section titled “error()”error(
msg, …args):void
Defined in: src/Logger.ts:68
Parameters
Section titled “Parameters”string
…unknown[]
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”info()
Section titled “info()”info(
msg, …args):void
Defined in: src/Logger.ts:62
Parameters
Section titled “Parameters”string
…unknown[]
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”warn()
Section titled “warn()”warn(
msg, …args):void
Defined in: src/Logger.ts:65
Parameters
Section titled “Parameters”string
…unknown[]
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”withFields()
Section titled “withFields()”withFields(
fields):Logger
Defined in: src/Logger.ts:76
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.
Parameters
Section titled “Parameters”fields
Section titled “fields”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”withSource()
Section titled “withSource()”withSource(
source):Logger
Defined in: src/Logger.ts:72
Create a logger bound to a source (e.g. an actor path).
Parameters
Section titled “Parameters”source
Section titled “source”string