Documentation ¶
Index ¶
- func Configure(config Config)
- func ConfigureBugsnag(config BugsnagConfig)
- func Error(err error, a ...interface{})
- func Fatal(err error, a ...interface{})
- func Info(message interface{}, a ...interface{})
- func LogIfErr(err error)
- func Warn(err error, a ...interface{})
- func WarnIfErr(err error)
- func Wrap(err1 error, err2 error) error
- type BugsnagConfig
- type Config
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureBugsnag ¶ added in v0.1.4
func ConfigureBugsnag(config BugsnagConfig)
ConfigureBugsnag Configure bugsnag
func Wrap ¶
Wrap wraps error with custom error so we can group them by error class in bugsnag
Example (Output) ¶
errTest = errors.New("test error class") lc := Config{ CustomErrorClass: map[string]error{ "ErrTest": errTest, }, } Configure(lc) err := Wrap(errTest, fmt.Errorf("Error something should not have happened")) fmt.Println(err.Error())
Output: Error something should not have happened: test error class
Types ¶
Click to show internal directories.
Click to hide internal directories.