classLog

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RequestID   = "Request_id"
	RequestIP   = "Request_ip"
	Msg         = "msg"
	Reason      = "reason"
	Param       = "param"
	RequestTime = "Request_time"
)
View Source
var ProviderSet = wire.NewSet(NewClogger)

Functions

func Logger

func Logger(c *conf.ZapLogConfigs) log.Logger

func NewClogger

func NewClogger(l log.Logger) *log.Helper

func NewZapLogger

func NewZapLogger(c *conf.ZapLogConfigs) *zap.Logger

Types

type Clogger

type Clogger interface {
	Warnw(keyvals ...interface{})
	Errorw(keyvals ...interface{})
	Warn(a ...interface{})
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳