AsyncLoggerOptions interface

Explicit configuration for a Logger, replacing what it would otherwise read from the environment.

Signature:

export interface AsyncLoggerOptions 

Remarks

Both fields are read independently: pass only metadata and the transports still come from LOGGER_TRANSPORTS, and vice versa. Passing an empty transports array is not the same as omitting it — an empty array means "console only", while omitting it falls back to the environment.

Properties

Property

Modifiers

Type

Description

metadata

JsonObject

Fields attached to every record sent to a transport, such as a source or environment tag. Does not affect console output.

transports

TransportOptions[]

Transports to log through. Each entry is created and attached at construction time; entries with enabled: false are skipped.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.