TransportOptions interface

One transport declaration — the shape of each element in the LOGGER_TRANSPORTS JSON array.

Signature:

export interface TransportOptions 

Example

{
    "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

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

LoggerOptions

Options handed to the winston transport constructor — filename for file, host/port/path/ssl for http.

type

string

Which transport to create: 'file' or 'http'. Any other value is rejected at construction time.

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