@connected-home/react-native-persistent-logger

1.0.1 • Public • Published

@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.

Package Sidebar

Install

npm i @connected-home/react-native-persistent-logger

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

934 kB

Total Files

20

Last publish

Collaborators

  • bvic23
  • domthom
  • sandfox