Documentation ¶
Index ¶
- Constants
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Debugw(msg string, kvp ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Errorw(msg string, kvp ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalw(msg string, kvp ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Infow(msg string, kvp ...interface{})
- func SetStdLevel(level Level)
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- func Warnw(msg string, kvp ...interface{})
- type Level
- type LevelSetter
- type Logger
- type LoggerLevelSetter
Constants ¶
View Source
const MaxLevelStringLen = 5
Variables ¶
This section is empty.
Functions ¶
func SetStdLevel ¶
func SetStdLevel(level Level)
Types ¶
type Level ¶
type Level int
const ( AllLevel Level DebugLevel InfoLevel WarnLevel ErrorLevel PanicLevel FatalLevel )
func ParseLevel ¶
func (*Level) UnmarshalText ¶
type LevelSetter ¶
type LevelSetter interface {
SetLevel(level Level)
}
type Logger ¶
type Logger interface { Debug(v ...interface{}) Info(v ...interface{}) Warn(v ...interface{}) Error(v ...interface{}) Panic(v ...interface{}) Fatal(v ...interface{}) Debugf(format string, v ...interface{}) Infof(format string, v ...interface{}) Warnf(format string, v ...interface{}) Errorf(format string, v ...interface{}) Panicf(format string, v ...interface{}) Fatalf(format string, v ...interface{}) Debugw(msg string, kvp ...interface{}) Infow(msg string, kvp ...interface{}) Warnw(msg string, kvp ...interface{}) Errorw(msg string, kvp ...interface{}) Panicw(msg string, kvp ...interface{}) Fatalw(msg string, kvp ...interface{}) With(kvp ...interface{}) Logger }
type LoggerLevelSetter ¶
type LoggerLevelSetter interface { Logger LevelSetter }
var Std LoggerLevelSetter
func SetStdLogger ¶
func SetStdLogger(logger LoggerLevelSetter) LoggerLevelSetter
Click to show internal directories.
Click to hide internal directories.