Documentation ¶
Index ¶
- Constants
- func Debug(msg string)
- func Debugf(format string, values ...interface{})
- func Error(msg string)
- func Errorf(format string, values ...interface{})
- func Fatal(msg string)
- func Fatalf(format string, values ...interface{})
- func Info(msg string)
- func Infof(format string, values ...interface{})
- func Panic(msg string)
- func Panicf(format string, values ...interface{})
- func SetupGlobalLogger(logger Logger)
- func Validate(o *Options) []error
- func Warn(msg string)
- func Warnf(format string, values ...interface{})
- type DefaultLogger
- func (d *DefaultLogger) Debug(msg string)
- func (d *DefaultLogger) Error(msg string)
- func (d *DefaultLogger) Fatal(msg string)
- func (d *DefaultLogger) Info(msg string)
- func (d *DefaultLogger) Panic(msg string)
- func (d *DefaultLogger) V(level Level) StdLogger
- func (d *DefaultLogger) Warn(msg string)
- func (d *DefaultLogger) WithFields(fields Fields) Logger
- type Fields
- type Level
- type Logger
- type Options
- type StdLogger
Constants ¶
View Source
const ( TextFormat = "text" JsonFormat = "json" )
Variables ¶
This section is empty.
Functions ¶
func SetupGlobalLogger ¶
func SetupGlobalLogger(logger Logger)
Types ¶
type DefaultLogger ¶ added in v1.5.5
type DefaultLogger struct {
// contains filtered or unexported fields
}
func (*DefaultLogger) Debug ¶ added in v1.5.5
func (d *DefaultLogger) Debug(msg string)
func (*DefaultLogger) Error ¶ added in v1.5.5
func (d *DefaultLogger) Error(msg string)
func (*DefaultLogger) Fatal ¶ added in v1.5.5
func (d *DefaultLogger) Fatal(msg string)
func (*DefaultLogger) Info ¶ added in v1.5.5
func (d *DefaultLogger) Info(msg string)
func (*DefaultLogger) Panic ¶ added in v1.5.5
func (d *DefaultLogger) Panic(msg string)
func (*DefaultLogger) V ¶ added in v1.5.5
func (d *DefaultLogger) V(level Level) StdLogger
func (*DefaultLogger) Warn ¶ added in v1.5.5
func (d *DefaultLogger) Warn(msg string)
func (*DefaultLogger) WithFields ¶ added in v1.5.5
func (d *DefaultLogger) WithFields(fields Fields) Logger
type Logger ¶
Click to show internal directories.
Click to hide internal directories.