forked from rollbar/rollbar-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples_test.go
67 lines (55 loc) · 1.16 KB
/
examples_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package rollbar_test
import (
"errors"
"github.com/rollbar/rollbar-go"
)
func ExampleCritical_error() {
rollbar.Critical(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}
func ExampleCritical_message() {
rollbar.Critical("bork", map[string]interface{}{
"hello": "world",
})
}
func ExampleError_error() {
rollbar.Error(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}
func ExampleError_message() {
rollbar.Error("bork", map[string]interface{}{
"hello": "world",
})
}
func ExampleWarning_error() {
rollbar.Warning(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}
func ExampleWarning_message() {
rollbar.Warning("bork", map[string]interface{}{
"hello": "world",
})
}
func ExampleInfo_error() {
rollbar.Info(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}
func ExampleInfo_message() {
rollbar.Info("bork", map[string]interface{}{
"hello": "world",
})
}
func ExampleDebug_error() {
rollbar.Debug(errors.New("bork"), map[string]interface{}{
"hello": "world",
})
}
func ExampleDebug_message() {
rollbar.Debug("bork", map[string]interface{}{
"hello": "world",
})
}