Documentation
¶
Index ¶
- func Debug(msg string, fields ...Field)
- func Debugf(template string, args ...interface{})
- func Default()
- func Error(msg string, fields ...Field)
- func Errorf(template string, args ...interface{})
- func Fatal(msg string, fields ...Field)
- func Fatalf(template string, args ...interface{})
- func Info(msg string, fields ...Field)
- func Infof(template string, args ...interface{})
- func Sync() error
- type Field
- type Level
- type Logger
- func (lg *Logger) DPanic(msg string, fields ...Field)
- func (lg *Logger) DPanicf(template string, args ...interface{})
- func (lg *Logger) Debug(msg string, fields ...Field)
- func (lg *Logger) Debugf(template string, args ...interface{})
- func (lg *Logger) Error(msg string, fields ...Field)
- func (lg *Logger) Errorf(template string, args ...interface{})
- func (lg *Logger) Fatal(msg string, fields ...Field)
- func (lg *Logger) Fatalf(template string, args ...interface{})
- func (lg *Logger) Info(msg string, fields ...Field)
- func (lg *Logger) Infof(template string, args ...interface{})
- func (lg *Logger) Panic(msg string, fields ...Field)
- func (lg *Logger) Panicf(template string, args ...interface{})
- func (lg *Logger) Sync() error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Level ¶
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 )
func ParseLevel ¶
Click to show internal directories.
Click to hide internal directories.