# AsyncLoggerOptions interface · @imqueue/async-logger

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

Explicit configuration for a [Logger](https://imqueue.org/api/async-logger/latest/async-logger.logger/), replacing what it would otherwise read from the environment.

**Signature:**

```typescript
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](https://imqueue.org/api/async-logger/latest/async-logger.asyncloggeroptions.metadata/) |  | [JsonObject](https://imqueue.org/api/async-logger/latest/async-logger.jsonobject/) | Fields attached to every record sent to a transport, such as a source or environment tag. Does not affect console output. |
| [transports](https://imqueue.org/api/async-logger/latest/async-logger.asyncloggeroptions.transports/) |  | [TransportOptions](https://imqueue.org/api/async-logger/latest/async-logger.transportoptions/)\[\] | Transports to log through. Each entry is created and attached at construction time; entries with `enabled: false` are skipped. |

