log

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func DebugF

func DebugF(format string, args ...interface{})

func Error

func Error(args ...interface{})

func ErrorF

func ErrorF(format string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func Info

func Info(args ...interface{})

func InfoF

func InfoF(format string, args ...interface{})

func InitDefaultLogger

func InitDefaultLogger()

func InitGlobalLogger

func InitGlobalLogger(l Logger)

func Panic

func Panic(args ...interface{})

func PanicF

func PanicF(format string, args ...interface{})

func Trace

func Trace(args ...interface{})

func TraceF

func TraceF(format string, args ...interface{})

func Warn

func Warn(args ...interface{})

func WarnF

func WarnF(format string, args ...interface{})

Types

type Fields

type Fields map[string]interface{}

type Logger

type Logger interface {
	WithField(key string, value interface{}) Logger
	WithFields(fields Fields) Logger
	Trace(args ...interface{})
	TraceF(format string, args ...interface{})
	Debug(args ...interface{})
	DebugF(format string, args ...interface{})
	Info(args ...interface{})
	InfoF(format string, args ...interface{})
	Warn(args ...interface{})
	WarnF(format string, args ...interface{})
	Error(args ...interface{})
	ErrorF(format string, args ...interface{})
	Panic(args ...interface{})
	PanicF(format string, args ...interface{})
	Fatal(args ...interface{})
	FatalF(format string, args ...interface{})
}

func NewLogrusAdapt

func NewLogrusAdapt(l *logrus.Logger) Logger

func WithField

func WithField(key string, value interface{}) Logger

func WithFields

func WithFields(fields Fields) Logger

Jump to

Keyboard shortcuts

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