hlog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 53

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Elapse

func Elapse(fun string, fix ...func() []zap.Field) func()

func Err

func Err(msg string, fields ...zap.Field)

func Error

func Error() *zap.Logger

func GetLogger

func GetLogger(key string) *zap.Logger

func Info

func Info(msg string, fields ...zap.Field)

func LevelOf

func LevelOf(level Level) zapcore.Level

func Logger

func Logger() *zap.Logger

Types

type Level

type Level = string

Jump to

Keyboard shortcuts

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