PinoLogger
Defined in: observability/src/logger/pino.ts:13
The Pino-backed Logger. Nothing outside this package should name it —
construct loggers with createLogger. It is a thin pass-through to a Pino
instance; the interface overloads mirror Pino’s own, so each method is a
single delegated call.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PinoLogger(
instance):PinoLogger
Defined in: observability/src/logger/pino.ts:16
Parameters
Section titled “Parameters”instance
Section titled “instance”Logger
Returns
Section titled “Returns”PinoLogger
Methods
Section titled “Methods”child()
Section titled “child()”child(
bindings):Logger
Defined in: observability/src/logger/pino.ts:48
Derive a child logger that inherits every binding from its parent and
adds its own. Used to attach per-module context (module, repo, …)
without threading extra fields through every call.
Parameters
Section titled “Parameters”bindings
Section titled “bindings”Record<string, unknown>
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”debug()
Section titled “debug()”Call Signature
Section titled “Call Signature”debug(
obj,msg?):void
Defined in: observability/src/logger/pino.ts:21
Logs at debug level.
Parameters
Section titled “Parameters”Record<string, unknown>
string
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Call Signature
Section titled “Call Signature”debug(
msg):void
Defined in: observability/src/logger/pino.ts:22
Logs at debug level.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”error()
Section titled “error()”Call Signature
Section titled “Call Signature”error(
obj,msg?):void
Defined in: observability/src/logger/pino.ts:42
Logs at error level.
Parameters
Section titled “Parameters”Record<string, unknown>
string
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Call Signature
Section titled “Call Signature”error(
msg):void
Defined in: observability/src/logger/pino.ts:43
Logs at error level.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”flush()
Section titled “flush()”flush():
Promise<void>
Defined in: observability/src/logger/pino.ts:58
Wraps Pino’s own callback-based flush() — for a worker-thread
transport (Axiom) this sends a flushSync message to the worker and
waits for its ack; for a plain destination (no transport) Pino resolves
it immediately. See Logger.flush’s own doc for why this exists.
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”info()
Section titled “info()”Call Signature
Section titled “Call Signature”info(
obj,msg?):void
Defined in: observability/src/logger/pino.ts:28
Logs at info level.
Parameters
Section titled “Parameters”Record<string, unknown>
string
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Call Signature
Section titled “Call Signature”info(
msg):void
Defined in: observability/src/logger/pino.ts:29
Logs at info level.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”warn()
Section titled “warn()”Call Signature
Section titled “Call Signature”warn(
obj,msg?):void
Defined in: observability/src/logger/pino.ts:35
Logs at warn level.
Parameters
Section titled “Parameters”Record<string, unknown>
string
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Call Signature
Section titled “Call Signature”warn(
msg):void
Defined in: observability/src/logger/pino.ts:36
Logs at warn level.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void