Skip to content

Commit 8f05442

Browse files
committed
fix: cannot capture logs on react-native 0.78
1 parent 518e1a3 commit 8f05442

File tree

4 files changed

+673
-81
lines changed

4 files changed

+673
-81
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _A simple file-logger for React Native with configurable rolling policy, based o
1111

1212
## How it works
1313

14-
React-native-file-logger uses the [undocumented](https://github.com/facebook/react-native/blob/3c9e5f1470c91ff8a161d8e248cf0a73318b1f40/Libraries/polyfills/console.js#L433) `global.__inspectorLog` from React Native. It allows to intercept any calls to `console` and to retrieve the already-formatted log message. React-native-file-logger uses file-loggers from [CocoaLumberjack](https://github.com/CocoaLumberjack/CocoaLumberjack) on iOS and [Logback Android](https://github.com/tony19/logback-android) on Android to append messages into log files with an optional rolling policy.
14+
React-native-file-logger overrides the default `console` functions to capture log messages. The captured messages are then written to log files using [CocoaLumberjack](https://github.com/CocoaLumberjack/CocoaLumberjack) on iOS and [Logback Android](https://github.com/tony19/logback-android) on Android, with configurable rolling policies for log file management.
1515

1616
## Installation
1717

@@ -32,10 +32,6 @@ cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
3232
# npx pod-install
3333
```
3434

35-
### React-Native 0.69 and under
36-
37-
For older React-native version, use version `v0.4.1`
38-
3935
## Getting started
4036

4137
```

0 commit comments

Comments
 (0)