logger

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(lvl string) *zapLogger

Types

type Logger

type Logger interface {
	Infof(msg string, fields ...any)
	Info(msg string)
	Infow(msg string, fields ...string)
	Debug(msg string)
	Debugw(msg string, fields ...string)
	Debugf(msg string, fields ...any)
	Error(msg string)
	Errorf(msg string, fields ...any)
	Errorw(msg string, fields ...string)
	With(fields ...string) Logger
}
var (
	Null Logger = &null{}
)

Jump to

Keyboard shortcuts

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