zapKit

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(logPath string, maxFileSize, maxFileIndex int, compress bool, level zapcore.Level) (*zap.Logger, error)

NewLogger

@param level e.g. zap.InfoLevel

func NewSugaredLogger

func NewSugaredLogger(logPath string, maxFileSize, maxFileIndex int, compress bool, level zapcore.Level) (*zap.SugaredLogger, error)

func StringToLevel

func StringToLevel(str string, defArgs ...zapcore.Level) zapcore.Level

StringToLevel

@param defArgs 不传就采用默认值(INFO)

Types

This section is empty.

Jump to

Keyboard shortcuts

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