logger

package
v0.0.0-...-f600046 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

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