0.2.1 • Published 10 years ago

react-native-logger-client v0.2.1

Weekly downloads
8
License
MIT
Repository
github
Last release
10 years ago

react-native-logger-client

A Logger that runs on the device is the same as the chrome console.

NPM Version npm Build Status License

Usage

  1. Integrate into the root component
render() {
  return (
    <View>
      <App />
      {/* Let it be at the top of the app */}
      <Logger />
    </View>
  );
}
  1. Use it anywhere
console.log('Hello, Logs!');
console.info('This is a message.');
console.warn('user limit reached.');
console.error('error: name is undefined.');
console.log([{a:1, b:2, c:3}, {a:"foo", b:false, c:undefined}]);

API

It will automatically integrate with the console, when you use such as console.log, it will be output to the device.

The following features are currently integrated.

  • Console
    • log
    • info
    • warn
    • error

Installation

npm install --save react-native-logger-client

TODO

  • Mini window can be dragged
  • Mini window should be change color when log something
  • Limit maximum line number
  • Filter log by type
  • Show timestamps
  • Custom style output
  • Run on server
0.2.1

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago