Documentation
¶
Index ¶
- func Debug(message string, v ...interface{})
- func Error(message string, v ...interface{})
- func Fatal(message string, v ...interface{})
- func Info(message string, v ...interface{})
- func Panic(message string, v ...interface{})
- func SetFormatter(format Format)
- func SetLevel(level Level)
- func SetOutput(out io.Writer)
- func Trace(message string, v ...interface{})
- func Warn(message string, v ...interface{})
- type Entry
- func (entry *Entry) Debug(message string, v ...interface{})
- func (entry *Entry) Error(message string, v ...interface{})
- func (entry *Entry) Fatal(message string, v ...interface{})
- func (entry *Entry) Info(message string, v ...interface{})
- func (entry *Entry) Panic(message string, v ...interface{})
- func (entry *Entry) Trace(message string, v ...interface{})
- func (entry *Entry) Warn(message string, v ...interface{})
- type F
- type Format
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(message string, v ...interface{})
Fatal fatal log Calls os.Exit(1) after logging
Types ¶
type Entry ¶
Entry the log entry
type Level ¶
type Level uint32
Level type
const ( // PanicLevel level, highest level of severity. Logs and then calls panic with the // message passed to Debug, Info, ... PanicLevel Level = iota // FatalLevel level. Logs and then calls `logger.Exit(1)`. It will exit even if the // logging level is set to Panic. FatalLevel // ErrorLevel level. Logs. Used for errors that should definitely be noted. // Commonly used for hooks to send errors to an error tracking service. ErrorLevel // WarnLevel level. Non-critical entries that deserve eyes. WarnLevel // InfoLevel level. General operational entries about what's going on inside the // application. InfoLevel // DebugLevel level. Usually only enabled when debugging. Very verbose logging. DebugLevel // TraceLevel level. Designates finer-grained informational events than the Debug. TraceLevel )
These are the different logging levels. You can set the logging level to log on your instance of logger, obtained with `logrus.New()`.
Click to show internal directories.
Click to hide internal directories.