Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalF ¶
func FatalF(format string, v ...interface{})
FatalF will log an error and exit if any argument passed to fatal is an error
Types ¶
type Handler ¶
type Handler struct {
Logger logger.OutputIface `validate:"required"` // Default logger
// contains filtered or unexported fields
}
Handler error handling
func New ¶
func New(eh *exit.Handler, lgr logger.OutputIface) *Handler
New return a *Handler object.
func (*Handler) FatalF ¶
FatalF will log an error and exit if any argument passed to fatal is an error
type HandlerIface ¶
type HandlerIface interface {
// Panic will log an error and panic if err is not nil.
Panic(err error)
// PanicF will log an error and panic if any argument passed to format is an error
PanicF(format string, v ...interface{})
// LogF will log an error if any argument passed to format is an error
LogF(format string, v ...interface{}) bool
// Fatal will log an error and exit if err is not nil.
Fatal(err error)
// FatalF will log an error and exit if any argument passed to fatal is an error
FatalF(format string, v ...interface{})
}
HandlerIface ...
Click to show internal directories.
Click to hide internal directories.