Documentation ¶
Index ¶
- type FileLogger
- type LogLevel
- type Logger
- func NewFileLogger(name string, file string) (logger Logger, out *os.File, err error)
- func NewFileLoggerWithLevel(name string, file string, level LogLevel) (logger Logger, out *os.File, err error)
- func NewSimpleLogger(name string, out io.Writer) Logger
- func NewSimpleLoggerWithLevel(name string, out io.Writer, level LogLevel) Logger
- type SimpleLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLogger ¶ added in v0.7.0
FileLogger ...
func (*FileLogger) CloneWithLevel ¶ added in v0.7.0
func (l *FileLogger) CloneWithLevel(level LogLevel) Logger
CloneWithLevel ...
func (*FileLogger) Debugf ¶ added in v0.7.0
func (l *FileLogger) Debugf(f string, v ...interface{})
Debugf ...
func (*FileLogger) Errorf ¶ added in v0.7.0
func (l *FileLogger) Errorf(f string, v ...interface{})
Errorf ...
func (*FileLogger) Infof ¶ added in v0.7.0
func (l *FileLogger) Infof(f string, v ...interface{})
Infof ...
func (*FileLogger) Warningf ¶ added in v0.7.0
func (l *FileLogger) Warningf(f string, v ...interface{})
Warningf ...
type Logger ¶
type Logger interface { Errorf(string, ...interface{}) Warningf(string, ...interface{}) Infof(string, ...interface{}) Debugf(string, ...interface{}) CloneWithLevel(level LogLevel) Logger }
Logger ...
func NewFileLogger ¶
NewFileLogger ...
type SimpleLogger ¶ added in v0.7.0
SimpleLogger ...
func (*SimpleLogger) CloneWithLevel ¶ added in v0.7.0
func (l *SimpleLogger) CloneWithLevel(level LogLevel) Logger
CloneWithLevel ...
func (*SimpleLogger) Debugf ¶ added in v0.7.0
func (l *SimpleLogger) Debugf(f string, v ...interface{})
Debugf ...
func (*SimpleLogger) Errorf ¶ added in v0.7.0
func (l *SimpleLogger) Errorf(f string, v ...interface{})
Errorf ...
func (*SimpleLogger) Infof ¶ added in v0.7.0
func (l *SimpleLogger) Infof(f string, v ...interface{})
Infof ...
func (*SimpleLogger) Warningf ¶ added in v0.7.0
func (l *SimpleLogger) Warningf(f string, v ...interface{})
Warningf ...
Click to show internal directories.
Click to hide internal directories.