Documentation ¶
Index ¶
- Constants
- func Close()
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func GetConsoleEncoder() zapcore.Encoder
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Init(cfg *Config) error
- func Test(t *testing.T)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- type Config
- type Level
- type Log
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Level ¶
const ( // DebugLevel logs are typically voluminous, and are usually disabled in // production. DebugLevel Level = iota - 1 // InfoLevel is the default logging priority. InfoLevel // WarnLevel logs are more important than Info, but don't need individual // human review. WarnLevel // ErrorLevel logs are high-priority. If an application is running smoothly, // it shouldn't generate any error-level logs. ErrorLevel // DPanicLevel logs are particularly important errors. In development the // logger panics after writing the message. DPanicLevel // PanicLevel logs a message, then panics. PanicLevel // FatalLevel logs a message, then calls os.Exit(1). FatalLevel )
Click to show internal directories.
Click to hide internal directories.