logging

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUpFileLogger

func SetUpFileLogger(logpath string, loglevel string) *zap.Logger

logpath 日志文件路径 loglevel 日志级别

func SetUpZapLogger

func SetUpZapLogger(serviceName string, level int8) *zap.Logger

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