Question: How can we log messages and save it on the device for a production React Native Expo app?
Requirements
- Store log files on the mobile device
- (Ideally) Log rotation, compression and/or pruning
- Log files can be sent to a remote server on-demand (ie. user clicked a button)
Candidates that are not suitable
- Expo supports Sentry, but it is meant for crash reports.
- Expo support Amplitude and Segment, but they are more for analytics.
Sentry, Amplitude & Segment are not suitable because we are looking more of an implementation that does logging and dumping the logs to a remote server on-demand. We can create our own node.js server to accept incoming log dumps as well, so a hosted service is not necessary.
Our app currently uses redux-persist
, wondering if theres a solution (3rd-party library included) for logging to a persisted redux store compatible with React Native Expo apps?