@connected-home/react-native-persistent-logger
v1.0.1
Published
Allows saving log messages to persistent storage.
Downloads
4
Readme
@connected-home/react-native-persistent-logger
Getting started
$ yarn add @connected-home/react-native-persistent-logger
Mostly automatic installation
$ react-native link @connected-home/react-native-persistent-logger
iOS
Add
<key>UIFileSharingEnabled</key>
<true/>
to main Info.plist
to enable iTunes file sharing in the app
Usage
import PersistentLogger from '@connected-home/react-native-persistent-logger';
PersistentLogger.init('log_file.txt');
PersistentLogger.log('Something happened');
After this code is executed, a new file in Downloads called log_file.txt
should appear, with the log line inside.