logger

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log  *zap.Logger        // log to file and console
	Logf *zap.Logger        // log to file only
	Logc *zap.Logger        // log to console only
	Sug  *zap.SugaredLogger // log by Sugar to file and console
	Sugf *zap.SugaredLogger // log by Sugar to file only
	Sugc *zap.SugaredLogger // log by Sugar to console only
)
View Source
var (
	Level = zap.DebugLevel
)

Functions

func InitLog

func InitLog()

日志组件初始化

func NewEncoderConfig

func NewEncoderConfig() zapcore.EncoderConfig

func TimeEncoder

func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

Types

This section is empty.

Jump to

Keyboard shortcuts

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