react-native-logging-tools
v1.3.0
Published
[](https://travis-ci.org/imranMnts/react-native-logging-tools)  
init({
config: {
reportJSErrors: !__DEV__,
},
analytics: [createFirebaseLogger(analytics())],
errorReporters: [createCrashlyticsLogger(crashlytics())],
});:information_source: Documentation and example about initialization steps can be found here.
Features
Loggers
Debug Events
You can call this function where do you want/need to send logs to each plugged libraries to analytics during the initialization step
logEvent('EVENT_NAME', { your_key: 'value', ... });
logDebugEvent('EVENT_NAME', { your_key: 'value', ... });
logWarningEvent('EVENT_NAME', { your_key: 'value', ... });
logNetworkEvent('EVENT_NAME', { your_key: 'value', ... });
logErrorEvent('EVENT_NAME', { your_key: 'value', ... });:information_source: Documentation and example about logging event can be found here.
If you use react-navigation and you want send to analytics navigation events e.g, you can add logEvent to his event handler (React-navigation docs)
Error Events
You can call this function where do you want/need to send logs to each plugged libraries to errorReporters during the initialization step
recordError('EVENT_NAME', { your_key: 'value', ... });:information_source: Documentation and example about error reporting can be found here.
Reactotron
:information_source: Documentation and example about Reactotron can be found here.
JS Error handler
:information_source: Documentation and example about Reactotron can be found here.
Flipper
:information_source: Documentation about Flipper can be found here.
