Framework
FileOutputConfig
Interface: FileOutputConfig
Configuration for a file-based log output.
Properties
| Property | Type | Description |
|---|---|---|
colorMap? | boolean | Generate a companion .colormap file that records ANSI escape code positions. This allows colors to be reconstructed from stripped log files. Default: false |
format? | "text" | "json" | Output format: 'text' for human-readable, 'json' for structured. Default: 'text' |
level? | LogLevel | Minimum log level to write to this file. Inherits from logger.level if not set. |
maxFiles? | number | Maximum number of rotated files to keep. Default: 5 |
maxSize? | number | Maximum file size in bytes before rotation. Default: 10MB (10485760) |
path | string | File path for log output. Relative paths resolved from project root. |
timestamp? | TimestampFormat | Timestamp format for this file. Overrides global logger.timestamp if set. |
