logger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 8 Imported by: 17

Documentation

Index

Constants

View Source
const (
	DebugLevel = "debug"
	InfoLevel  = "info"
	WarnLevel  = "warn"
	ErrorLevel = "error"
)

Variables

View Source
var Console *zap.Logger
View Source
var Logger *zap.Logger

Functions

func GetLogger

func GetLogger(key string) *zap.Logger

func GetLoggerWriter

func GetLoggerWriter(logger *zap.Logger) io.Writer

func LevelOf

func LevelOf(level Level) zapcore.Level

Types

type Level

type Level = string

Jump to

Keyboard shortcuts

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