logger

package
v0.0.0-...-93092f2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogger = logrus.New()

DefaultLogger is an alias for the standard logrus Logger.

Functions

func Bootstrap

func Bootstrap(prefix string)

Bootstrap creates a new Logger.

func Debug

func Debug(args ...any)

Debug logs a debug message with args.

func Debugf

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

Debugf logs a debug message with a format and args.

func Error

func Error(args ...any)

Error logs an error message with args.

func Errorf

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

Errorf logs an error message with a format and args.

func Fatal

func Fatal(args ...any)

Fatal logs a fatal message with args.

func Info

func Info(args ...any)

Info logs ab info message with args.

func Infof

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

Infof logs ab info message with a format and args.

func Panic

func Panic(args ...any)

Panic logs a panic message with args.

func SetLevel

func SetLevel(level logrus.Level)

SetLevel sets the level of the DefaultLogger.

func SetLogger

func SetLogger(l *logrus.Logger)

SetLogger sets the application DefaultLogger.

func SetOutput

func SetOutput(writer io.Writer)

SetOutput sets the output of the DefaultLogger to an io.Writer, useful for testing.

func Trace

func Trace(args ...any)

Trace logs a trace message with args.

func Tracef

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

Tracef logs a trace message with a format and args.

func Warn

func Warn(args ...any)

Warn logs a warn message with args.

func Warnf

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

Warnf logs a warn message with a format and args.

func WithError

func WithError(err interface{}) *logrus.Entry

WithError - Logs with a Verbis error.

func WithField

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

WithField logs with field, sets a new map containing "fields".

func WithFields

func WithFields(fields logrus.Fields) *logrus.Entry

WithFields logs with fields, sets a new map containing "fields".

Types

This section is empty.

Jump to

Keyboard shortcuts

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