log

package
v0.0.0-...-4c36365 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, keyvals ...interface{})

func Error

func Error(msg string, keyvals ...interface{})

func Fatal

func Fatal(msg string, keyvals ...interface{})

func GetCurrentLogLevel

func GetCurrentLogLevel() zerolog.Level

func Info

func Info(msg string, keyvals ...interface{})

func InitGlobalLogger

func InitGlobalLogger(config config.Logger)

func NewLoggerLevel

func NewLoggerLevel(level zerolog.Level)

NewLoggerLevel initializes the logger level.

func Panic

func Panic(msg string, keyvals ...interface{})

func SetLoggerLevel

func SetLoggerLevel(level string)

function to set logger level based on env.

func Trace

func Trace(msg string, keyvals ...interface{})

func Warn

func Warn(msg string, keyvals ...interface{})

Types

type SubLogger

type SubLogger struct {
	// contains filtered or unexported fields
}

func NewSubLogger

func NewSubLogger(name string) *SubLogger

func (*SubLogger) Debug

func (sl *SubLogger) Debug(msg string, keyvals ...interface{})

func (*SubLogger) Error

func (sl *SubLogger) Error(msg string, keyvals ...interface{})

func (*SubLogger) Fatal

func (sl *SubLogger) Fatal(msg string, keyvals ...interface{})

func (*SubLogger) Info

func (sl *SubLogger) Info(msg string, keyvals ...interface{})

func (*SubLogger) Panic

func (sl *SubLogger) Panic(msg string, keyvals ...interface{})

func (*SubLogger) Trace

func (sl *SubLogger) Trace(msg string, keyvals ...interface{})

func (*SubLogger) Warn

func (sl *SubLogger) Warn(msg string, keyvals ...interface{})

Jump to

Keyboard shortcuts

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