Documentation
¶
Overview ¶
Package logger provides a comprehensive logging system designed for TUI applications. It supports multiple log levels, file-based logging, and configurable output destinations. The logger is designed to avoid stdout interference with terminal user interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config holds configuration for the logger
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a default logger configuration
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger implements the interfaces.Logger interface with configurable output and levels
func NewDualLogger ¶
NewDualLogger creates a logger that outputs to both stdout and a file
func NewFileLogger ¶
NewFileLogger creates a logger that outputs to a file with the given level
func NewInternalLogger ¶
NewInternalLogger creates a logger that stores logs in the specified cache directory This is designed for TUI applications where stdout logging would interfere with the UI
func NewSimpleLogger ¶
NewSimpleLogger creates a logger that outputs to stdout with the given level