logger

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Error

func Error(args ...interface{})

Error method overrides logrus.Error with additional custom logic

func GetLevel

func GetLevel() logrus.Level

func Info

func Info(args ...interface{})

Wrapping the standard functions

func SetFormatter

func SetFormatter(formatter logrus.Formatter)

func SetLevel

func SetLevel(level logrus.Level)

func SetOutput

func SetOutput(out io.Writer)

func StandardLogger

func StandardLogger() *logrus.Logger

func Warn

func Warn(args ...interface{})

Types

type CustomLogger

type CustomLogger struct {
	*logrus.Logger
}

CustomLogger wraps logrus.Logger and extends the Error method

func New

func New() *CustomLogger

New creates a new instance of CustomLogger

func (*CustomLogger) Format

func (cl *CustomLogger) Format(entry *logrus.Entry) ([]byte, error)

type LogFormatter

type LogFormatter struct{}

func (*LogFormatter) Format

func (s *LogFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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