Documentation
¶
Overview ¶
Package logger provides a unified structured logging foundation for DeltaScope surfaces. input: logging configuration (level, format, output path) and surface identifier output: configured *slog.Logger instances and bridges to *log.Logger for legacy consumers pos: infrastructure adapter for structured logging across server and MCP surfaces note: if this file changes, update this header and module README.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Level string // debug, info, warn, error — default "info"
Format string // json, text — default "json"
Output string // stderr, stdout, file — default "stderr"
FilePath string // required when Output is "file"
Rotate *RotateConfig // optional rotation; nil means plain append
}
Config configures structured logger creation.
type RotateConfig ¶
type RotateConfig struct {
Enabled bool
MaxSizeMB int // default 100
MaxBackups int // default 3
MaxAgeDays int // default 30
Compress *bool // nil defaults to true; set explicitly to false to disable
}
RotateConfig configures log file rotation via lumberjack. All fields use sensible defaults when zero.
Click to show internal directories.
Click to hide internal directories.