log

package
v0.0.0-...-cfe1fa9 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileLogger

func CreateFileLogger(fileOption *FileOption) *zap.Logger

CreateFileLogger 创建文件日志

func CreateFileLoggerByLevel

func CreateFileLoggerByLevel(fileOption *FileOption) *zap.Logger

CreateFileLoggerByLevel 创建文件等级日志.将会产生不同等级日志文件 如:debug info warn error panic fatal

Types

type FileOption

type FileOption struct {
	FileName   string
	MaxSize    int
	MaxAge     int
	MaxBackups int
	Compress   bool
	LocalTime  bool
}

Jump to

Keyboard shortcuts

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