log

package
v1.82.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 132

Documentation

Index

Constants

View Source
const (
	FallbackLogFormat       = "text"
	FallbackTimeFieldFormat = time.RFC3339
)

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 added in v1.27.0

func Fatal(args ...interface{})

func Fatalf added in v1.27.0

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

func GetLogLevel added in v1.62.0

func GetLogLevel() string

Return log level Used to get debug info

func Info

func Info(args ...interface{})

func Infof

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

func InitializeLogger added in v1.27.0

func InitializeLogger() zerolog.Logger

Configures the global log level and log format.

func IsDebug

func IsDebug() bool

func IsTrace

func IsTrace() bool

func Trace

func Trace(args ...interface{})

func Tracef

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

func Warning

func Warning(args ...interface{})

func Warningf

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

Types

type Format added in v1.27.0

type Format string

Jump to

Keyboard shortcuts

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