log

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 8 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

func DPanic(message string, fields ...zap.Field)

func Debug

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

func Error

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

func Fatal

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

func Info

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

func InitLogger

func InitLogger(opts ...zaplog.ConfigOption) error

func NewLogger

func NewLogger(opts ...zaplog.ConfigOption) (*zap.Logger, string, error)

func Panic

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

func SetBeforeLogHandler

func SetBeforeLogHandler(handler func() []zap.Field)

func SetLogLevel

func SetLogLevel(level string) error

func Sync added in v1.0.1

func Sync() error

func Warn

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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