log

package
v0.58.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...any)

Debug logs a message at level Debug on the standard logger.

func Debugf

func Debugf(format string, args ...any)

Debugf logs a message at level Debug on the standard logger.

func Debugln

func Debugln(args ...any)

Debugln logs a message at level Debug on the standard logger.

func Error

func Error(args ...any)

Error logs a message at level Error on the standard logger.

func Errorf

func Errorf(format string, args ...any)

Errorf logs a message at level Error on the standard logger.

func Errorln

func Errorln(args ...any)

Errorln logs a message at level Error on the standard logger.

func Fatal

func Fatal(args ...any)

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 ...any)

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 ...any)

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(args ...any)

Info logs a message at level Info on the standard logger.

func Infof

func Infof(format string, args ...any)

Infof logs a message at level Info on the standard logger.

func Infoln

func Infoln(args ...any)

Infoln logs a message at level Info on the standard logger.

func Logf added in v0.56.4

func Logf(level logrus.Level, format string, args ...interface{})

func Logger

func Logger() *logrus.Logger

Logger returns logger

func Panic

func Panic(args ...any)

Panic logs a message at level Panic on the standard logger.

func Panicf

func Panicf(format string, args ...any)

Panicf logs a message at level Panic on the standard logger.

func Panicln

func Panicln(args ...any)

Panicln logs a message at level Panic on the standard logger.

func Print

func Print(args ...any)

Print logs a message at level Info on the standard logger.

func Printf

func Printf(args ...any)

Printf logs a message at level Info on the standard logger.

func Println

func Println(args ...any)

Println logs a message at level Info on the standard logger.

func SetLogLevel

func SetLogLevel(level logrus.Level)

func SetLogger

func SetLogger(l *logrus.Logger)

Logger returns logger

func Trace added in v0.56.4

func Trace(args ...any)

Trace logs a message at level Trace on the standard logger.

func Tracef added in v0.56.4

func Tracef(format string, args ...any)

Tracef logs a message at level Trace on the standard logger.

func Warn

func Warn(args ...any)

Warn logs a message at level Warn on the standard logger.

func Warnf

func Warnf(format string, args ...any)

Warnf logs a message at level Warn on the standard logger.

func Warnln

func Warnln(args ...any)

Warnln logs a message at level Warn on the standard logger.

func WithError

func WithError(err error) *logrus.Entry

WithError adds an error to log entry, using the value defined in ErrorKey as key.

func WithField added in v0.58.7

func WithField(key string, value interface{}) *logrus.Entry

WithField allocates a new entry and adds a field to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL