Documentation ¶
Index ¶
- Constants
- Variables
- func AddFile(filename string, maxAgeDays int)
- func AddHook(hook logrus.Hook)
- func AddOutput(writer io.Writer)
- func Debug(args ...interface{})
- func DebugFn(fn logrus.LogFunction)
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(args ...interface{})
- func ErrorFn(fn logrus.LogFunction)
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Exit(code int)
- func Fatal(args ...interface{})
- func FatalFn(fn logrus.LogFunction)
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func InfoFn(fn logrus.LogFunction)
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func IsLevelEnabled(level Level) bool
- func Log(level Level, args ...interface{})
- func LogFn(level Level, fn logrus.LogFunction)
- func Logf(level Level, format string, args ...interface{})
- func Logln(level Level, args ...interface{})
- func Panic(args ...interface{})
- func PanicFn(fn logrus.LogFunction)
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func Print(args ...interface{})
- func PrintFn(fn logrus.LogFunction)
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func ReplaceHooks(hooks logrus.LevelHooks) logrus.LevelHooks
- func SetFormatter(formatter logrus.Formatter)
- func SetLevel(level Level)
- func SetNoLock()
- func SetOutput(output io.Writer)
- func SetReportCaller(reportCaller bool)
- func Trace(args ...interface{})
- func TraceFn(fn logrus.LogFunction)
- func Tracef(format string, args ...interface{})
- func Traceln(args ...interface{})
- func Warn(args ...interface{})
- func WarnFn(fn logrus.LogFunction)
- func Warnf(format string, args ...interface{})
- func Warning(args ...interface{})
- func WarningFn(fn logrus.LogFunction)
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- func Warnln(args ...interface{})
- func WithContext(ctx context.Context) *logrus.Entry
- func WithError(err error) *logrus.Entry
- func WithField(key string, value interface{}) *logrus.Entry
- func WithFields(fields logrus.Fields) *logrus.Entry
- func WithTime(t time.Time) *logrus.Entry
- type ColorCleaner
- type Formatter
- type Level
- type Sprinter
Constants ¶
View Source
const ( TraceLevel = logrus.TraceLevel DebugLevel = logrus.DebugLevel InfoLevel = logrus.InfoLevel WarnLevel = logrus.WarnLevel ErrorLevel = logrus.ErrorLevel FatalLevel = logrus.FatalLevel PanicLevel = logrus.PanicLevel )
Variables ¶
View Source
var Logger *logrus.Logger
Functions ¶
func DebugFn ¶
func DebugFn(fn logrus.LogFunction)
func ErrorFn ¶
func ErrorFn(fn logrus.LogFunction)
func FatalFn ¶
func FatalFn(fn logrus.LogFunction)
func InfoFn ¶
func InfoFn(fn logrus.LogFunction)
func IsLevelEnabled ¶
func LogFn ¶
func LogFn(level Level, fn logrus.LogFunction)
func PanicFn ¶
func PanicFn(fn logrus.LogFunction)
func PrintFn ¶
func PrintFn(fn logrus.LogFunction)
func ReplaceHooks ¶
func ReplaceHooks(hooks logrus.LevelHooks) logrus.LevelHooks
func SetFormatter ¶
func SetReportCaller ¶
func SetReportCaller(reportCaller bool)
func TraceFn ¶
func TraceFn(fn logrus.LogFunction)
func WarnFn ¶
func WarnFn(fn logrus.LogFunction)
func WarningFn ¶
func WarningFn(fn logrus.LogFunction)
Types ¶
type ColorCleaner ¶
Click to show internal directories.
Click to hide internal directories.