xblogger

package
v0.0.0-...-4398306 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MinCallerFrameSkip = 7
	MaxCallerFrameSize = 1 << 5
)

Variables

View Source
var (
	SkipKey  = "#skip"
	PanicKey = "panic"
	ErrorKey = logrus.ErrorKey
)

Functions

func Debug

func Debug(args ...any)

func Debugf

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

func Error

func Error(args ...any)

func Errorf

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

func Fatal

func Fatal(args ...any)

func Fatalf

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

func FormatPanic

func FormatPanic(value any, stack []byte) string

func Info

func Info(args ...any)

func Infof

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

func IsDebugLevel

func IsDebugLevel() bool

func IsErrorLevel

func IsErrorLevel() bool

func IsFatalLevel

func IsFatalLevel() bool

func IsInfoLevel

func IsInfoLevel() bool

func IsPanicLevel

func IsPanicLevel() bool

func IsTraceLevel

func IsTraceLevel() bool

func IsWarnLevel

func IsWarnLevel() bool

func Panic

func Panic(args ...any)

func Panicf

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

func Trace

func Trace(args ...any)

func Tracef

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

func Warn

func Warn(args ...any)

func Warnf

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

Types

type Entry

type Entry = logrus.Entry

func WithError

func WithError(err error) *Entry

func WithFields

func WithFields(fields Fields) *Entry

type Fields

type Fields = logrus.Fields

type Level

type Level = logrus.Level

func GetLevel

func GetLevel() Level

type Logger

type Logger = logrus.Logger

func GetLogger

func GetLogger() *Logger

Jump to

Keyboard shortcuts

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