zapKit

package
v2.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 5 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