logger

package
v0.0.0-...-cb7d7c7 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogFileName      = "./logs/access.log"
	SplitFileMaxSize = 100
	DefaultLevel     = zapcore.InfoLevel
)

Variables

This section is empty.

Functions

func DestroyLogger

func DestroyLogger()

DestroyLogger 销毁日志

Types

type Logger

type Logger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}
var (
	GlobalLogger *Logger
)

func NewLogger

func NewLogger(debug bool) *Logger

NewLogger 创建日志对象

Jump to

Keyboard shortcuts

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