Documentation
¶
Index ¶
- type Level
- type Logger
- type NilLogger
- func (*NilLogger) Debug(string)
- func (*NilLogger) Debugf(string, ...interface{})
- func (*NilLogger) Error(string)
- func (*NilLogger) Errorf(string, ...interface{})
- func (*NilLogger) Info(string)
- func (*NilLogger) Infof(string, ...interface{})
- func (*NilLogger) Warn(string)
- func (*NilLogger) Warnf(string, ...interface{})
- type StdLogger
- func (l *StdLogger) Debug(msg string)
- func (l *StdLogger) Debugf(format string, args ...interface{})
- func (l *StdLogger) Error(msg string)
- func (l *StdLogger) Errorf(format string, args ...interface{})
- func (l *StdLogger) Info(msg string)
- func (l *StdLogger) Infof(format string, args ...interface{})
- func (l *StdLogger) LogWithLevel(level Level, msg string)
- func (l *StdLogger) LogWithLevelf(level Level, format string, args ...interface{})
- func (l *StdLogger) Warn(msg string)
- func (l *StdLogger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int8
func ParseLevel ¶
func (Level) MarshalText ¶
func (*Level) UnmarshalText ¶
type StdLogger ¶
func NewStdLogger ¶
func (*StdLogger) LogWithLevel ¶
func (*StdLogger) LogWithLevelf ¶ added in v2.5.0
LogWithLevelf uses fmt.Errorf to construct and log.Printf to log a message.
Click to show internal directories.
Click to hide internal directories.