Documentation
¶
Index ¶
- type Level
- type Logger
- type NoopLogger
- func (n *NoopLogger) Debugf(format string, data ...interface{})
- func (n *NoopLogger) Errorf(format string, data ...interface{})
- func (n *NoopLogger) Infof(format string, data ...interface{})
- func (n *NoopLogger) Tracef(format string, data ...interface{})
- func (n *NoopLogger) Warnf(format string, data ...interface{})
- type SimpleLogger
- func (s *SimpleLogger) Debugf(format string, data ...interface{})
- func (s *SimpleLogger) Errorf(format string, data ...interface{})
- func (s *SimpleLogger) Infof(format string, data ...interface{})
- func (s *SimpleLogger) SetLevel(level Level)
- func (s *SimpleLogger) Tracef(format string, data ...interface{})
- func (s *SimpleLogger) Warnf(format string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level uint32
Level type
const ( // ErrorLevel level. Logs. Used for errors that should definitely be noted. // Commonly used for hooks to send errors to an error tracking service. ErrorLevel Level = iota // WarnLevel level. Non-critical entries that deserve eyes. WarnLevel // InfoLevel level. General operational entries about what's going on inside the // application. InfoLevel // DebugLevel level. Usually only enabled when debugging. Very verbose logging. DebugLevel // TraceLevel level. Designates finer-grained informational events than the Debug. TraceLevel )
type NoopLogger ¶
type NoopLogger struct{}
func (*NoopLogger) Debugf ¶
func (n *NoopLogger) Debugf(format string, data ...interface{})
func (*NoopLogger) Errorf ¶
func (n *NoopLogger) Errorf(format string, data ...interface{})
func (*NoopLogger) Infof ¶
func (n *NoopLogger) Infof(format string, data ...interface{})
func (*NoopLogger) Tracef ¶
func (n *NoopLogger) Tracef(format string, data ...interface{})
func (*NoopLogger) Warnf ¶
func (n *NoopLogger) Warnf(format string, data ...interface{})
type SimpleLogger ¶
type SimpleLogger struct {
// contains filtered or unexported fields
}
func NewSimpleLogger ¶
func NewSimpleLogger() *SimpleLogger
func (*SimpleLogger) Debugf ¶
func (s *SimpleLogger) Debugf(format string, data ...interface{})
func (*SimpleLogger) Errorf ¶
func (s *SimpleLogger) Errorf(format string, data ...interface{})
func (*SimpleLogger) Infof ¶
func (s *SimpleLogger) Infof(format string, data ...interface{})
func (*SimpleLogger) SetLevel ¶
func (s *SimpleLogger) SetLevel(level Level)
func (*SimpleLogger) Tracef ¶
func (s *SimpleLogger) Tracef(format string, data ...interface{})
func (*SimpleLogger) Warnf ¶
func (s *SimpleLogger) Warnf(format string, data ...interface{})
Click to show internal directories.
Click to hide internal directories.