logging

package
v1.99.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Memory = newInMemoryHook(100)
)

Functions

func AddLogLevelFlag added in v1.34.0

func AddLogLevelFlag(flagset *pflag.FlagSet)

func BackupLogFile added in v1.21.0

func BackupLogFile()

func CloseLogging

func CloseLogging()

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(s string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(s string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Info

func Info(args ...interface{})

func Infof

func Infof(s string, args ...interface{})

func InitLogrus

func InitLogrus(logFilePath string)

func IsDebug added in v1.34.0

func IsDebug() bool

func OpenLogFile

func OpenLogFile(path string) (*os.File, error)

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(s string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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