Documentation
¶
Index ¶
- func Debug(msg string, v ...any)
- func SetLevel(level LogLevel)
- type LogLevel
- type Logger
- func (l *Logger) Debug(msg string, v ...any)
- func (l *Logger) Error(theerr error, msg string, v ...any)
- func (l *Logger) Info(msg string, v ...any)
- func (l *Logger) Init() error
- func (l *Logger) Logger() *log.Logger
- func (l *Logger) SetDefault(prefix string)
- func (l *Logger) SetLevel(level string)
- func (l *Logger) SetLogpath(path string)
- func (l *Logger) SetPrefix(prefix string)
- type LoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct { Config LoggerConfig // contains filtered or unexported fields }
func (*Logger) SetDefault ¶
func (*Logger) SetLogpath ¶
Click to show internal directories.
Click to hide internal directories.