react-native-smart-log
v1.0.1
Published
smart log for react-native
Downloads
4
Maintainers
Readme
react native master-log
Cross Platform React Native - Code Log
Keep a close eye on your code with React-Native-Master-Log. This is a barebones reliable everyday logging library. It does not do fancy things, it does not let you reconfigure appenders or add complex log filtering rules or boil tea (more's the pity), but it does have the all core functionality that you actually use:
Get Started
Installation
$ npm install react-native-smart-log
Import
$ import kk from 'react-native-smart-log';
Usage
kk.setFilter('data');
kk.setLogType('resp');
kk.info('hi info', 'information Text');
kk.warn('hi warn', 'warning Text');
kk.error('hi error', 'error Text');
kk.resp('hi response', 'response Object Data');
Log Types
kk.setLogType(logType) | Log Types | Description | | ------ | ------ | | log | General log | | info | Information logs| | warn | Warning logs | | error | Error logs | | resp | Response logs|
setFilter
Filter your keywords with this feature. Just see what you want. Recommended for clean code.
kk.setFilter('data');
How can I contact with you?
E-mail me for any questions! [email protected]