# TransportOptions interface · @imqueue/async-logger

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

One transport declaration — the shape of each element in the `LOGGER_TRANSPORTS` JSON array.

**Signature:**

```typescript
export interface TransportOptions 
```

## Example


```json
{
    "type": "http",
    "options": {
        "ssl": true,
        "port": 443,
        "host": "http-intake.logs.datadoghq.com",
        "path": "/v1/input/<API_KEY>"
    },
    "enabled": true
}
```

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [enabled](https://imqueue.org/api/async-logger/latest/async-logger.transportoptions.enabled/) |  | boolean | Whether to attach this transport. A `false` entry is skipped entirely, so a transport can be left in the config and switched off per environment rather than deleted. |
| [options](https://imqueue.org/api/async-logger/latest/async-logger.transportoptions.options/) |  | LoggerOptions | Options handed to the winston transport constructor — `filename` for `file`, `host`/`port`/`path`/`ssl` for `http`. |
| [type](https://imqueue.org/api/async-logger/latest/async-logger.transportoptions.type/) |  | string | Which transport to create: `'file'` or `'http'`. Any other value is rejected at construction time. |

