0.1.1 • Published 7 years ago

react-native-logmatic v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

react-native-logmatic

Send your logs directly to Logmatic with React Native.

Installation

$ npm install react-native-logmatic
$ react-native link react-native-logmatic

Additional step for iOS

Install the Logmatic iOS SDK via Cocoapods:

pod 'Logmatic'

Usage

import Logmatic from 'react-native-logmatic'

// init the logger using your APIKey
Logmatic.init(<apiKey>);

// [OPTIONAL] add extra fields for all events
Logmatic.setMetas({ extra: 'meta' });

// log your events (context is optional)
Logmatic.log('My first log');
Logmatic.log('My first log with context', { some: 'context' });