Documentation
¶
Index ¶
- type Level
- type Logger
- func (l *Logger) Cleanup()
- func (l *Logger) Close()
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) SetConsole(enabled bool)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) Warn(format string, args ...interface{})
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 provides structured file-based logging with daily rotation.
func (*Logger) Cleanup ¶
func (l *Logger) Cleanup()
Cleanup removes log files older than retentionDays.
func (*Logger) SetConsole ¶
SetConsole enables or disables console output.
Click to show internal directories.
Click to hide internal directories.