nightingale-react-native-console
TypeScript icon, indicating that this package has built-in type declarations

15.0.0 • Public • Published

nightingale-react-native-console

React Native and Expo handler for nightingale

Install

npm install --save nightingale nightingale-react-native-console

Usage

:warn: This logger is meant for dev only.

import { configure, Level } from 'nightingale';
import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';

configure(
  process.env.NODE_ENV === 'production'
    ? []
    : [
        {
          pattern: /^app(:|$)/,
          handlers: [new ReactNativeConsoleHandler(Level.DEBUG)],
          stop: true,
        },
        {
          handlers: [new ReactNativeConsoleHandler(Level.INFO)],
        },
      ],
);

You can use directly nightingale-app-react-native to get this config and an ready to use appLogger.

Package Sidebar

Install

npm i nightingale-react-native-console

Weekly Downloads

11

Version

15.0.0

License

ISC

Unpacked Size

22.6 kB

Total Files

10

Last publish

Collaborators

  • churpeau