Documentation ¶
Overview ¶
дублирует все функции логгера logrus
Index ¶
- func AddHook(hook logrus.Hook)
- 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 GetLevel() logrus.Level
- func GetLog() *logrus.Logger
- func Info(args ...interface{})
- func InfoFn(fn logrus.LogFunction)
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func IsLevelEnabled(level logrus.Level) bool
- func Log(level logrus.Level, args ...interface{})
- func LogFn(level logrus.Level, fn logrus.LogFunction)
- func Logf(level logrus.Level, format string, args ...interface{})
- func Logln(level logrus.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 SetBufferPool(pool logrus.BufferPool)
- func SetFormatter(formatter logrus.Formatter)
- func SetLevel(LOG_LEVEL string)
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 ¶
IsLevelEnabled checks if the log level of the logger is greater than the level param
func Log ¶
Log will log a message at the level given as parameter. Warning: using Log at Panic or Fatal level will not respectively Panic nor Exit. For this behaviour Logger.Panic or Logger.Fatal should be used instead.
func PanicFn ¶
func PanicFn(fn logrus.LogFunction)
func PrintFn ¶
func PrintFn(fn logrus.LogFunction)
func ReplaceHooks ¶
func ReplaceHooks(hooks logrus.LevelHooks) logrus.LevelHooks
ReplaceHooks replaces the logger hooks and returns the old ones
func SetBufferPool ¶
func SetBufferPool(pool logrus.BufferPool)
SetBufferPool sets the logger buffer pool.
func SetFormatter ¶
SetFormatter sets the logger formatter.
func SetNoLock ¶
func SetNoLock()
When file is opened with appending mode, it's safe to write concurrently to a file (within 4k message on Linux). In these cases user can choose to disable the lock.
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)
func WithContext ¶
Add a context to the log entry.
func WithError ¶
Add an error as single field to the log entry. All it does is call `WithError` for the given `error`.
func WithField ¶
WithField allocates a new entry and adds a field to it. Debug, Print, Info, Warn, Error, Fatal or Panic must be then applied to this new returned entry. If you want multiple fields, use `WithFields`.
func WithFields ¶
Adds a struct of fields to the log entry. All it does is call `WithField` for each `Field`.
Types ¶
This section is empty.