# transportsConfig() function · @imqueue/async-logger

Source: https://imqueue.org/api/async-logger/latest/async-logger.transportsconfig/
Published: 2026-07-31
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/async-logger 3.2.0 — generated reference, not hand-written

Parses the transport declarations out of `LOGGER_TRANSPORTS`, expanding `%name` and `%version` first.

**Signature:**

```typescript
export declare function transportsConfig(): TransportOptions[];
```
**Returns:**

[TransportOptions](https://imqueue.org/api/async-logger/latest/async-logger.transportoptions/)\[\]

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](https://imqueue.org/api/async-logger/latest/async-logger.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.

