logger

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DPanic, Panic and Fatal level can not be set by user
	DebugLevelStr   string = "debug"
	InfoLevelStr    string = "info"
	WarningLevelStr string = "warning"
	ErrorLevelStr   string = "error"
)

Variables

This section is empty.

Functions

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(logLevel string, logFile string, isProd bool) error

func NewSugar

func NewSugar(name string) *zap.SugaredLogger

func Warn

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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