Skip to content

Commit fd3704b

Browse files
v 5.5.0
1 parent df74442 commit fd3704b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [5.5.0] - 07-09-2025
2+
3+
- Add extension on Crashlytics errors (as fileName)
4+
15
## [5.4.0] - 06-09-2025
26

37
- Fix Readme (issue #115)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-logs",
3-
"version": "5.4.0",
3+
"version": "5.5.0",
44
"description": "Performance-aware simple logger for React-Native with namespaces, custom levels and custom transports (colored console, file writing, etc.)",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/transports/crashlyticsTransport.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { transportFunctionType } from "../index";
22

33
export type CrashlyticsTransportOption = {
44
CRASHLYTICS: {
5-
recordError: (error: Error | string) => void;
5+
recordError: (error: Error | string, name?: string) => void;
66
log: (msg: string) => void;
77
};
88
errorLevels?: string | Array<string>;
@@ -43,7 +43,10 @@ const crashlyticsTransport: transportFunctionType<
4343
? msgToRecord
4444
: new Error(String(msgToRecord));
4545

46-
props.options.CRASHLYTICS.recordError(errorToRecord);
46+
props.options.CRASHLYTICS.recordError(
47+
errorToRecord,
48+
props.extension || undefined
49+
);
4750
} else {
4851
props.options.CRASHLYTICS.log(String(msgToRecord));
4952
}

0 commit comments

Comments
 (0)