Documentation ¶
Index ¶
- type Level
- type LogHandler
- type Logger
- func (l *Logger) Debug(v ...any)
- func (l *Logger) Debugf(format string, v ...any)
- func (l *Logger) Error(v ...any)
- func (l *Logger) Errorf(format string, v ...any)
- func (l *Logger) Fatal(v ...any)
- func (l *Logger) Fatalf(format string, v ...any)
- func (l *Logger) Info(v ...any)
- func (l *Logger) Infof(format string, v ...any)
- func (l *Logger) Print(v ...any)
- func (l *Logger) Printf(format string, v ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogHandler ¶
func NewDiscard ¶
func NewDiscard(debug bool) *LogHandler
func NewStderr ¶
func NewStderr(debug bool) *LogHandler
func NewSyslog ¶
func NewSyslog(debug bool) *LogHandler
type Logger ¶
type Logger struct {
Handler *LogHandler
}
Wrap handler to simpliy interface
func New ¶
func New(handler *LogHandler) *Logger
Click to show internal directories.
Click to hide internal directories.