log

package
v0.0.0-...-884beae Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: GPL-3.0 Imports: 6 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

func GetDBLogger

func GetDBLogger() *gormzap.Logger

func InitLog

func InitLog(filepath string, filemaxsize int, maxbackups int, maxage int, iscompress bool)

func SetLevel

func SetLevel(level string)

设置日志级别

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