You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+16-5
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This extension requires iOS 6.0 or higher and Android 2.2 (API level 8) or highe
17
17
18
18
## Binary Files
19
19
20
-
You can find the final compiled ANE binary along with the swc file in the bin folder.
20
+
You can find the final compiled ANE binary along with the swc file in the bin folder or on the [releases](https://github.com/DigitalStrawberry/ANE-Bugsnag/releases) page.
You aren't limited to tracking only ```Error``` objects. You can send a generic error:
105
105
106
106
```
107
-
Bugsnag.notify("Big Error", "A really big error has occured");
107
+
Bugsnag.notify("Big Error", "A really big error has occurred");
108
108
```
109
109
110
110
You can also add a severity to it:
111
111
112
112
```
113
-
Bugsnag.notify("Big Error", "A really big error has occured", Severity.INFO);
113
+
Bugsnag.notify("Big Error", "A really big error has occurred", Severity.INFO);
114
114
```
115
115
116
-
It may be helpful to provide a stacktrace of where the error occured:
116
+
It may be helpful to provide a stacktrace of where the error occurred:
117
117
118
118
```
119
-
Bugsnag.notify("Big Error", "A really big error has occured", Severity.INFO, new Error().getStackTrace());
119
+
Bugsnag.notify("Big Error", "A really big error has occurred", Severity.INFO, new Error().getStackTrace());
120
+
```
121
+
122
+
You can also provide additional metadata for errors that will show up in a custom tab on the Bugsnag dashboard. Each metadata object will display as a new tab.
123
+
124
+
```
125
+
var metadata:Metadata = new Metadata("Error Details");
126
+
metadata.addAttribute("Description", "Something went really wrong");
127
+
128
+
Bugsnag.notify("Big Error", "A really big error has occurred", Serverity.INFO, new Error().getStackTrace(), new <Metadata>[metadata]);
120
129
```
121
130
122
131
## Additional Settings
@@ -180,6 +189,8 @@ Or even remove entire custom tabs:
180
189
Bugsnag.removeTab("My Tab");
181
190
```
182
191
192
+
Note that custom tabs will show up for every error that you log, including native errors. You should use the ```metadata``` parameter of the ```notify``` method if you only want to include custom data for a single event.
193
+
183
194
### Context
184
195
185
196
The context represents the state the application is in before the error. You can set the context:
0 commit comments