logger

package
v0.0.0-...-0213d94 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultZapLogger

func SetDefaultZapLogger()

func SetLogger

func SetLogger(newLogger Logger)

func SetZapLogger

func SetZapLogger(cfg config.LoggerConfig)

Types

type Logger

type Logger interface {
	Debug(msg string)
	Debugf(template string, args ...interface{})
	Info(msg string)
	Infof(template string, args ...interface{})
	Error(msg string)
	Errorf(template string, args ...interface{})
	Warn(msg string)
	Warnf(template string, args ...interface{})
	Fatal(msg string)
	Fatalf(template string, args ...interface{})
	Panic(msg string)
	Panicf(template string, args ...interface{})
	With(args ...interface{}) Logger
}
var Log Logger

func NewDefaultLogger

func NewDefaultLogger() Logger

Jump to

Keyboard shortcuts

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