Skip to content

LoggerConfig

Defined in: observability/src/logger/create.ts:15

Options for createLogger.

optional axiom?: AxiomTransportConfig

Defined in: observability/src/logger/create.ts:30

Axiom credentials. Resolved from env vars by default (HOLOCRON_AXIOM_TOKEN / AXIOM_TOKEN + HOLOCRON_AXIOM_DATASET / AXIOM_DATASET). Pass this only to override — e.g. to pair an OS-keyring token with a config-file dataset. The token must never come from a committed config file. The transport is also skipped entirely when HOLOCRON_TELEMETRY=false.


optional consoleOutput?: boolean

Defined in: observability/src/logger/create.ts:39

Explicit override for whether human-visible console output (pretty or NDJSON) runs at all, independent of level. undefined (default) preserves the existing ci/tty auto-detection — every consumer that doesn’t pass this is unaffected. Pass false to suppress console output entirely (e.g. a CLI’s quiet-by-default interactive mode); Axiom (if configured) still receives everything.


optional level?: LogLevel

Defined in: observability/src/logger/create.ts:21

Explicit level — the highest-priority source. The caller passes the resolved --verbose / --quiet flag or a config field here. Falls through to HOLOCRON_LOG_LEVEL, then "info".