log

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelInfo  = "info"
	LogLevelWarn  = "warn"
	LogLevelError = "error"
	LogLevelDebug = "debug"
)

Variables

View Source
var (
	DefaultLogLevel        = "INFO"
	DefaultLogLevelKey     = "level"
	DefaultLogLevelEncoder = "capital"
)

Functions

func SetupLogger

func SetupLogger(logLevel string, logLevelKey string, logLevelEncoder string) error

Types

type ProviderLogWrapper added in v0.15.0

type ProviderLogWrapper struct {
	ZP *zap.SugaredLogger
}

func (*ProviderLogWrapper) Debug added in v0.15.0

func (l *ProviderLogWrapper) Debug(msg string)

func (*ProviderLogWrapper) Error added in v0.15.0

func (l *ProviderLogWrapper) Error(err error, msg string)

func (*ProviderLogWrapper) Info added in v0.15.0

func (l *ProviderLogWrapper) Info(msg string)

Jump to

Keyboard shortcuts

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