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