logger

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrType          = errors.New("ERRTYPE")
	ErrFileExtension = errors.New("ERRFILEEXTENSION: unsupported file extension")
	ErrEncoding      = errors.New("ERRENCODING: unsupported encoding")
	ErrAlreadyExist  = errors.New("ERRALREADYEXIST")
	ErrNotFound      = errors.New("ERRNOTFOUND")
	ErrArgs          = errors.New("ERRARGS")
	ErrValidation    = errors.New("ERRVALIDATION")
	ErrReference     = errors.New("ERRREFERENCE")
)

Functions

func Debug

func Debug(template string, a ...interface{})

func Error

func Error(err error)

func Fatal

func Fatal(err error)

func Info

func Info(template string, a ...interface{})

func New

func New(debug bool)

func NewErr

func NewErr(err error, msg string) error

func NewErrAndLog

func NewErrAndLog(err error, msg string) error

NewErrAndLog takes an error and a message, concatenate it, log it and return the err

func SugaredLoggerWithCallerSkip

func SugaredLoggerWithCallerSkip(n int) *zap.SugaredLogger

func Warn

func Warn(template string, a ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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