log

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

log

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger added in v0.3.0

func GetLogger(config ...Config) *zap.Logger

Types

type Config added in v0.3.0

type Config struct {
	// //文件最多保存多少天
	// MaxAge int
	// //每个日志文件保存的最大尺寸 单位:M
	// MaxSize int
	// //日志文件最多保存多少个备份
	// MaxBackups int
	// //服务名
	// ServiceName string
	// //日志文件路径
	// Dir string
	// //按天分割日志,默认为true启用
	// SplitByDay bool
	// //是否压缩
	// Compress bool
	//日志级别
	Level zapcore.Level
}

Jump to

Keyboard shortcuts

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