Documentation ¶
Index ¶
- func Debug(msg string, fields ...Field)
- func Error(msg string, fields ...Field)
- func Fatal(msg string, fields ...Field)
- func Info(msg string, fields ...Field)
- func Panic(msg string, fields ...Field)
- func SetLevel(level Level)
- func SetWriteSyncer(out io.Writer)
- func Sync()
- func Warn(msg string, fields ...Field)
- type Field
- type Level
- type WriteSyncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetWriteSyncer ¶
Types ¶
type Level ¶
Level of logging
const ( // DebugLevel logs are typically voluminous, and are usually disabled in // production. DebugLevel Level = zapcore.DebugLevel // InfoLevel is the default logging priority. InfoLevel Level = zapcore.InfoLevel // WarnLevel logs are more important than Info, but don't need individual // human review. WarnLevel Level = zapcore.WarnLevel // ErrorLevel logs are high-priority. If an application is running smoothly, // it shouldn't generate any error-level logs. ErrorLevel Level = zapcore.ErrorLevel // DPanicLevel logs are particularly important errors. In development the // logger panics after writing the message. DPanicLevel Level = zapcore.DPanicLevel // PanicLevel logs a message, then panics. PanicLevel Level = zapcore.PanicLevel // FatalLevel logs a message, then calls os.Exit(1). FatalLevel Level = zapcore.FatalLevel )
type WriteSyncer ¶
type WriteSyncer = zapcore.WriteSyncer
Click to show internal directories.
Click to hide internal directories.