Skip to content

CreateLoggerOptions

Defined in: create-logger.ts:7

optional gcp?: boolean

Defined in: create-logger.ts:15

Google Cloud structured logging: level -> severity labels, message key “message”. Default: false.


optional level?: "debug" | "info" | "warn" | "error"

Defined in: create-logger.ts:9

Default: “info” when NODE_ENV === “production”, else “debug”.


optional pino?: Record<string, unknown>

Defined in: create-logger.ts:17

Extra pino options merged last (escape hatch).


optional pretty?: boolean

Defined in: create-logger.ts:13

Pretty-print via pino-pretty when available. Default: false. Ignored in production.


optional redact?: string[]

Defined in: create-logger.ts:11

Pino redact paths. Default: SENSITIVE_PATHS. Pass [] to disable.