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
[android] Logs a message that will appear in a subsequent crash report as well as in [logcat](https://developer.android.com/studio/command-line/logcat.html).
38
59
[ios] Logs the message in the subsequest crash report only (same as log).
39
60
61
+
[collapse Example]
62
+
```js
63
+
firebase.crash().logcat(1, 'CRASH', 'Something went really wrong!');
64
+
```
65
+
[/collapse]
66
+
40
67
| Parameter ||
41
68
| --------- | --- |
42
69
| level |**number**|
@@ -50,6 +77,17 @@ Sends the crash report, along with any previous [ref crash#log] or [ref crash#lo
50
77
51
78
> Reports are not realtime. They can take a number of hours to appear in the Firebase console.
52
79
80
+
[collapse Example]
81
+
```js
82
+
try {
83
+
loadSomeService();
84
+
} catch(e) {
85
+
firebase.crash().log('Service failed to load');
86
+
firebase.crash().report(e, 10);
87
+
}
88
+
```
89
+
[/collapse]
90
+
53
91
| Parameter ||
54
92
| --------- | --- |
55
93
| error |[**Error**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) <br /> A JavaScript Error. |
0 commit comments