Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func InitLogger()
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func SetLevel(level Level)
- func SetOutput(out io.Writer)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- func WithField(key string, value interface{}) *logrus.Entry
- func WithFields(fields Fields) *logrus.Entry
- type Fields
- type Level
- type Logger
- type ShowuserlogHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(args ...interface{})
func Error ¶
func Error(args ...interface{})
func Fatal ¶
func Fatal(args ...interface{})
func Info ¶
func Info(args ...interface{})
func InitLogger ¶
func InitLogger()
func Panic ¶
func Panic(args ...interface{})
func Print ¶
func Print(args ...interface{})
func Warn ¶
func Warn(args ...interface{})
func Warning ¶
func Warning(args ...interface{})
Types ¶
type Level ¶
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 `os.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 )
type ShowuserlogHook ¶
ShowuserlogHook writes all levels of logrus entries to a file for later analysis
func NewShowuserlogHook ¶
func NewShowuserlogHook(l logrus.Level) (*ShowuserlogHook, error)
func (*ShowuserlogHook) Fire ¶
func (hook *ShowuserlogHook) Fire(entry *logrus.Entry) error
func (*ShowuserlogHook) Levels ¶
func (hook *ShowuserlogHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.