Documentation
¶
Overview ¶
Package logging provides zerolog-based structured logging for OVRSE.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger zerolog.Logger
Logger is the global logger instance.
Functions ¶
func Initialized ¶
func Initialized() bool
Initialized returns true if the logger has been initialized.
func WithComponent ¶
WithComponent returns a child logger with component field.
Types ¶
type Config ¶
type Config struct {
Level string // debug, info, warn, error
Format string // text, json
Output io.Writer // defaults to os.Stderr
FilePath string // optional: also write to file
}
Config holds logger configuration.
func DefaultCLIConfig ¶
func DefaultCLIConfig() Config
DefaultCLIConfig returns default config for CLI mode.
func DefaultMCPConfig ¶
func DefaultMCPConfig() Config
DefaultMCPConfig returns default config for MCP mode. MCP uses stdio for protocol, so logs must go to stderr as JSON.
Click to show internal directories.
Click to hide internal directories.