Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a custom logger
func NewLogger ¶
func NewLogger(config LoggerConfig) (*Logger, error)
NewLogger creates a new Logger instance (singleton pattern)
type LoggerConfig ¶
type LoggerConfig struct { Level LogLevel // Log level FilePath string // Log file path MaxSize int64 // Maximum size of a single log file (bytes) MaxBackups int // Maximum number of old log files to retain MaxAge int // Maximum number of days to retain old log files Compress bool // Whether to compress old log files }
LoggerConfig is the configuration structure for Logger
Click to show internal directories.
Click to hide internal directories.