LoggerConfig
Defined in: src/lib/logging/types.ts:250
Configuration for the logger.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
defaultAttributes? | Attributes | Default attributes added to all logs. | src/lib/logging/types.ts:269 |
includeStackTraces | boolean | Whether to include stack traces for error logs. | src/lib/logging/types.ts:259 |
maxMessageLength | number | Maximum length of log messages before truncation. | src/lib/logging/types.ts:264 |
minLevel | LogLevel | Minimum log level to emit. | src/lib/logging/types.ts:254 |
redactMessagesInline | boolean | Whether 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 true | src/lib/logging/types.ts:285 |
redactPii | boolean | Whether 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 true | src/lib/logging/types.ts:277 |