Documentation ¶
Index ¶
- Variables
- func Debug(template string, a ...interface{})
- func Error(err error)
- func Fatal(err error)
- func Info(template string, a ...interface{})
- func New(debug bool)
- func NewErr(err error, msg string) error
- func NewErrAndLog(err error, msg string) error
- func SugaredLoggerWithCallerSkip(n int) *zap.SugaredLogger
- func Warn(template string, a ...interface{})
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 NewErrAndLog ¶
NewErrAndLog takes an error and a message, concatenate it, log it and return the err
func SugaredLoggerWithCallerSkip ¶
func SugaredLoggerWithCallerSkip(n int) *zap.SugaredLogger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.