zapKit

package
v2.0.17 Latest Latest
Warning

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

Go to latest
Published: May 23, 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(writer io.Writer, level zapcore.Level) (*zap.Logger, error)

NewLogger

@param writer 可以是: ioKit.NewLumberjackWriteCloser() @param level e.g. zap.InfoLevel

func NewSugaredLogger

func NewSugaredLogger(logger *zap.Logger) *zap.SugaredLogger

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