zap_log

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: LGPL-2.1 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Install   = self.Install
	Uninstall = self.Uninstall
)
View Source
var With _Option

Functions

func NewConsoleZapLogger

func NewConsoleZapLogger(level zapcore.Level, separator, fileName string, maxSize int, stdout, development bool) (*zap.Logger, zap.AtomicLevel)

NewConsoleZapLogger 创建控制台样式zap logger(支持文件分割)

func NewJsonZapLogger

func NewJsonZapLogger(level zapcore.Level, fileName string, maxSize int, stdout, development bool) (*zap.Logger, zap.AtomicLevel)

NewJsonZapLogger 创建Json样式zap logger(支持文件分割)

Types

type LoggerOptions

type LoggerOptions struct {
	ZapLogger   *zap.Logger
	ServiceInfo bool
	RuntimeInfo bool
	CallerSkip  int
}

LoggerOptions 所有选项

Jump to

Keyboard shortcuts

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