Logger.(constructor)

Constructs a new instance of the Logger class

Signature:

constructor(options?: AsyncLoggerOptions);

Parameters

Parameter

Type

Description

options

AsyncLoggerOptions

(Optional) explicit transports and metadata. Omit either half and it is read from LOGGER_TRANSPORTS / LOGGER_METADATA; omit the argument entirely and both are.

Exceptions

TypeError if the environment config is not valid JSON, or names a transport type other than file or http

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