CreateLoggerOptions
Defined in: create-logger.ts:7
Properties
Section titled “Properties”
optionalgcp?:boolean
Defined in: create-logger.ts:15
Google Cloud structured logging: level -> severity labels, message key “message”. Default: false.
level?
Section titled “level?”
optionallevel?:"debug"|"info"|"warn"|"error"
Defined in: create-logger.ts:9
Default: “info” when NODE_ENV === “production”, else “debug”.
optionalpino?:Record<string,unknown>
Defined in: create-logger.ts:17
Extra pino options merged last (escape hatch).
pretty?
Section titled “pretty?”
optionalpretty?:boolean
Defined in: create-logger.ts:13
Pretty-print via pino-pretty when available. Default: false. Ignored in production.
redact?
Section titled “redact?”
optionalredact?:string[]
Defined in: create-logger.ts:11
Pino redact paths. Default: SENSITIVE_PATHS. Pass [] to disable.