Documentation
¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Debugw(template string, keysAndValues ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorw(template string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalw(template string, keysAndValues ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(template string, keysAndValues ...interface{})
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicw(template string, keysAndValues ...interface{})
- func Register(i Interface)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnw(template string, keysAndValues ...interface{})
- type Interface
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
type Interface interface {
Name() string
Info(args ...interface{})
Debug(args ...interface{})
Warn(args ...interface{})
Error(args ...interface{})
Panic(args ...interface{})
Fatal(args ...interface{})
Infof(template string, args ...interface{})
Debugf(template string, args ...interface{})
Warnf(template string, args ...interface{})
Errorf(template string, args ...interface{})
Panicf(template string, args ...interface{})
Fatalf(template string, args ...interface{})
Infow(msg string, keysAndValues ...interface{})
Debugw(msg string, keysAndValues ...interface{})
Warnw(msg string, keysAndValues ...interface{})
Errorw(msg string, keysAndValues ...interface{})
Errorwt(ctx context.Context, msg string, keysAndValues ...interface{})
Panicw(msg string, keysAndValues ...interface{})
Fatalw(msg string, keysAndValues ...interface{})
}
type Level ¶
type Level string
const ( // DebugLevel logs are typically voluminous, and are usually disabled in // production. DebugLevel Level = "DEBUG" // InfoLevel is the default logging priority. InfoLevel Level = "INFO" // WarnLevel logs are more important than Info, but don't need individual // human review. WarnLevel Level = "WARN" // ErrorLevel logs are high-priority. If an application is running smoothly, // it shouldn't generate any error-level logs. ErrorLevel Level = "ERROR" // DPanicLevel logs are particularly important errors. In development the // logger panics after writing the message. DPanicLevel Level = "DPANIC" // PanicLevel logs a message, then panics. PanicLevel Level = "PANIC" )
Click to show internal directories.
Click to hide internal directories.