Documentation
¶
Index ¶
- func Error(err error)
- func Fatal(err error)
- func Flush()
- func Info(message string, data Fields)
- func Warn(message string, data Fields)
- func WarnError(err error)
- func WrapError(inner error, message string) error
- func WrapErrorWithContext(inner error, message string, context Fields) error
- func WrapErrorWithContextAndStack(inner error, message string, context Fields, stackSkip int) error
- type Fielder
- type Fields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(err error)
Error logs an error with the error message & converts the message to fields if Fielder is implemented
func Fatal ¶
func Fatal(err error)
Fatal logs errors in the same way as Error then flushes the errors and calls os.Exit(1)
func Info ¶
Info logs with the given message & addition fields at the INFO Level This doesn't log to sentry
func WrapError ¶
WrapError annotates an error with an additional message It also captures the location of the caller
func WrapErrorWithContext ¶
WrapErrorWithContext annotates an error with an additional message and contextual fields It also captures the location of the caller
func WrapErrorWithContextAndStack ¶
WrapErrorWithContextAndStack annotates an error with an additional message and contextual fields It also captures the location of a specific point in the call stack caller -> stackSkip = 0 caller of the caller -> stackSkip = 1 etc...