Skip to main content

LoggerConfig

Defined in: src/lib/logging/types.ts:250

Configuration for the logger.

Properties

PropertyTypeDescriptionDefined in
defaultAttributes?AttributesDefault attributes added to all logs.src/lib/logging/types.ts:269
includeStackTracesbooleanWhether to include stack traces for error logs.src/lib/logging/types.ts:259
maxMessageLengthnumberMaximum length of log messages before truncation.src/lib/logging/types.ts:264
minLevelLogLevelMinimum log level to emit.src/lib/logging/types.ts:254
redactMessagesInlinebooleanWhether to scan log messages for inline PII patterns (emails, SSNs, etc.). This is more expensive than attribute redaction but catches PII that might be interpolated into log messages. Default truesrc/lib/logging/types.ts:285
redactPiibooleanWhether to automatically redact PII from log attributes and messages. When enabled, sensitive data like emails, passwords, SSNs, etc. will be automatically redacted before logging. Default truesrc/lib/logging/types.ts:277