transportsConfig() function
Parses the transport declarations out of LOGGER_TRANSPORTS, expanding %name and %version first.
Signature:
export declare function transportsConfig(): TransportOptions[];
Returns:
the declared transports, or an empty array when unset
Exceptions
TypeError if the variable is set but not parseable as JSON
Remarks
An unset variable yields an empty array, which the Logger treats as console-only rather than as an error — the normal local-development case. Malformed JSON, by contrast, throws: a config typo should fail loudly at start-up rather than silently drop a production log destination.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.