1.0.1 • Published 5 years ago

@connected-home/react-native-persistent-logger v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@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

iTunes File Sharing

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.