Documentation ¶
Index ¶
- type Level
- type Writer
- func (w *Writer) Debug(args ...interface{})
- func (w *Writer) Debugf(format string, args ...interface{})
- func (w *Writer) Error(args ...interface{})
- func (w *Writer) Errorf(format string, args ...interface{})
- func (w *Writer) Fatal(args ...interface{})
- func (w *Writer) Fatalf(format string, args ...interface{})
- func (w *Writer) Info(args ...interface{})
- func (w *Writer) Infof(format string, args ...interface{})
- func (w *Writer) Sync() error
- func (w *Writer) Warn(args ...interface{})
- func (w *Writer) Warnf(format string, args ...interface{})
- func (w *Writer) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int
A Level is a logging priority. Higher levels are more important.
const ( // DebugLevel logs are typically voluminous, and are usually disabled in // production. DebugLevel Level = iota // 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 // InvalidLevel is an invalid value for Level. // // Core implementations may panic if they see messages of this level. InvalidLevel = _maxLevel + 1 )
Click to show internal directories.
Click to hide internal directories.