log

package
v0.0.0-...-2aa8555 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry

Check returns a CheckedEntry if logging a message at the specified level is enabled

func CreateLogger

func CreateLogger(path, level, pattern, name, format, url string, compress bool) (*zap.Logger, error)

func CreateLogrus

func CreateLogrus(path, level, pattern string, compress bool) error

func Debug

func Debug(msg string, fields ...zap.Field)

Debug can print out the log directly with the globalLog

func Error

func Error(msg string, fields ...zap.Field)

Error can print out the log directly with the globalLog

func Fatal

func Fatal(msg string, fields ...zap.Field)

Fatal can print out the log directly with the globalLog

func GlobalLogger

func GlobalLogger() *zap.Logger

func Info

func Info(msg string, fields ...zap.Field)

Info can print out the log directly with the globalLog

func Logger

func Logger(w io.Writer, level, name, format, url string) (*zap.Logger, error)

func Panic

func Panic(msg string, fields ...zap.Field)

Panic can print out the log directly with the globalLog

func SetGlobalLogger

func SetGlobalLogger(log *zap.Logger)

func Sugar

func Sugar() *zap.SugaredLogger

func Warn

func Warn(msg string, fields ...zap.Field)

Warn can print out the log directly with the globalLog

func Writer

func Writer(path, pattern string, compress bool) (io.Writer, error)

Writer generate the rollingWriter

Types

This section is empty.

Jump to

Keyboard shortcuts

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