Documentation ¶
Index ¶
- Constants
- func Debug(msg string, ctx ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(msg string, ctx ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(msg string, ctx ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func GetLevel() logrus.Level
- func Info(msg string, ctx ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Panic(msg string, ctx ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func Print(msg string, ctx ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func SetFormatter(formatter logrus.Formatter)
- func SetLevel(level logrus.Level)
- func SetOutput(output io.Writer)
- func ShowFilename()
- func Warn(msg string, ctx ...interface{})
- func Warnf(format string, args ...interface{})
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- func Warnln(args ...interface{})
- type Formatter
- type JSONFormatter
- type Level
- type Logger
- func (logger *Logger) Debug(msg string, args ...interface{})
- func (logger *Logger) Error(msg string, args ...interface{})
- func (logger *Logger) Fatal(msg string, args ...interface{})
- func (logger *Logger) GetLevel() logrus.Level
- func (logger *Logger) Info(msg string, args ...interface{})
- func (logger *Logger) Panic(msg string, args ...interface{})
- func (logger *Logger) Print(msg string, args ...interface{})
- func (logger *Logger) SetFormatter(formatter Formatter)
- func (logger *Logger) SetLevel(level logrus.Level)
- func (logger *Logger) SetOutput(output io.Writer)
- func (logger *Logger) ShowFilename()
- func (logger *Logger) Warn(msg string, args ...interface{})
- type TextFormatter
Constants ¶
const ( PanicLevel = logrus.PanicLevel FatalLevel = logrus.FatalLevel ErrorLevel = logrus.ErrorLevel WarnLevel = logrus.WarnLevel InfoLevel = logrus.InfoLevel DebugLevel = logrus.DebugLevel )
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, ctx ...interface{})
Debug logs a message at level Debug on the standard logger.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs a message at level Debug on the standard logger.
func Debugln ¶
func Debugln(args ...interface{})
Debugln logs a message at level Debug on the standard logger.
func Error ¶
func Error(msg string, ctx ...interface{})
Error logs a message at level Error on the standard logger.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs a message at level Error on the standard logger.
func Errorln ¶
func Errorln(args ...interface{})
Errorln logs a message at level Error on the standard logger.
func Fatal ¶
func Fatal(msg string, ctx ...interface{})
Fatal logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func Fatalln ¶
func Fatalln(args ...interface{})
Fatalln logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func Info ¶
func Info(msg string, ctx ...interface{})
Info logs a message at level Info on the standard logger.
func Infof ¶
func Infof(format string, args ...interface{})
Infof logs a message at level Info on the standard logger.
func Infoln ¶
func Infoln(args ...interface{})
Infoln logs a message at level Info on the standard logger.
func Panic ¶
func Panic(msg string, ctx ...interface{})
Panic logs a message at level Panic on the standard logger.
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf logs a message at level Panic on the standard logger.
func Panicln ¶
func Panicln(args ...interface{})
Panicln logs a message at level Panic on the standard logger.
func Print ¶
func Print(msg string, ctx ...interface{})
Print logs a message at level Info on the standard logger.
func Printf ¶
func Printf(format string, args ...interface{})
Printf logs a message at level Info on the standard logger.
func Println ¶
func Println(args ...interface{})
Println logs a message at level Info on the standard logger.
func SetFormatter ¶
SetFormatter sets the logger formatter.
func Warn ¶
func Warn(msg string, ctx ...interface{})
Warn logs a message at level Warn on the standard logger.
func Warnf ¶
func Warnf(format string, args ...interface{})
Warnf logs a message at level Warn on the standard logger.
func Warningf ¶
func Warningf(format string, args ...interface{})
Warningf logs a message at level Warn on the standard logger.
Types ¶
type JSONFormatter ¶
type JSONFormatter = logrus.JSONFormatter
type Logger ¶
func (*Logger) SetFormatter ¶
SetFormatter sets the logger formatter.
func (*Logger) ShowFilename ¶
func (logger *Logger) ShowFilename()
ShowFilename show filename and position
type TextFormatter ¶
type TextFormatter = logrus.TextFormatter