Client-side React-native logger to use with Loggly gen2. Check out Loggly's Javascript logging documentation to learn more. This is a fork of https://github.com/loggly/loggly-jslogger but working without browser constant.
npm install react-native-loggly-jslogger
or
yarn install react-native-loggly-jslogger
this article from Loggly is a good starting point to instantiate your logger
import { LogglyTracker } from 'react-native-loggly-jslogger';
const logger = new LogglyTracker();
// set your key
logger.push({ 'logglyKey': 'YOUR CUSTOMER TOKEN HERE' });
//push a string
logger.push('my tracking string');
//push a json;
logger.push({
'text': 'my tracking string',
'aList': [9, 2, 5],
'anObject': {
'id': 1,
'value': 'foobar'
}
})
You can build min and map file by using the command below:
npm install
grunt