Logging Configuration
Options
| Option | Default | Description |
|---|---|---|
database | ./data/pasteguard.db | SQLite database path |
retention_days | 30 | Days to keep logs. 0 = forever |
log_content | false | Log raw request/response (contains PII!) |
log_masked_content | true | Log masked version for dashboard |
Database
Logs are stored in SQLite:Retention
Logs older thanretention_days are automatically deleted:
Content Logging
Raw Content (not recommended)
Logs original request/response including PII:Masked Content (default)
Logs masked version for dashboard preview:No Content
Disable all content logging:Security
- Secret content is never logged, even if
log_content: true - Only secret types are logged if
log_detected_types: true - Masked content shows placeholders like
<EMAIL_ADDRESS_1>, not real PII