@connected-home/react-native-persistent-logger
Allows saving log messages to persistent storage.
Last updated a year ago by bgo2 .
MIT · Original npm · Tarball · package.json
$ cnpm install @connected-home/react-native-persistent-logger 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (a year ago)

2 Versions

  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |