log

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoHandler = errors.New("no handler")
)

Functions

func Debug

func Debug(v ...interface{})

func Debugf

func Debugf(format string, v ...interface{})

func Error

func Error(v ...interface{})

func Errorf

func Errorf(format string, v ...interface{})

func Info

func Info(v ...interface{})

func Infof

func Infof(format string, v ...interface{})

func InitLog

func InitLog(cfg config.LogConfig) error

func LogIfError

func LogIfError(err error, msg string)

func Panic

func Panic(v ...interface{})

func PanicError

func PanicError(err error, v ...interface{})

func Panicf

func Panicf(format string, v ...interface{})

func Sync

func Sync() error

func Warn

func Warn(v ...interface{})

func Warnf

func Warnf(format string, v ...interface{})

Types

type Logger

type Logger interface {
	Panic(v ...interface{})
	Panicf(format string, v ...interface{})
	Errorf(format string, v ...interface{})
	Warnf(format string, v ...interface{})
	Infof(format string, v ...interface{})
	Debugf(format string, v ...interface{})
	LogIfError(err error, msg string)
	Log(err error, format string, v ...interface{})
}

func WithLogger

func WithLogger(prefix string) Logger

Jump to

Keyboard shortcuts

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