15.0.0 • Published 5 months ago

nightingale-react-native-console v15.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
5 months ago

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.

15.0.0

5 months ago

14.2.0

6 months ago

14.2.1

6 months ago

14.0.0

11 months ago

14.1.0

10 months ago

14.0.1

11 months ago

14.0.2

11 months ago

13.0.0

1 year ago

12.1.2

2 years ago

12.1.3

2 years ago

12.1.4

2 years ago

12.0.0

2 years ago

12.1.0

2 years ago

12.0.1

2 years ago

12.1.1

2 years ago

11.7.3

2 years ago

11.7.4

2 years ago

11.9.0

2 years ago

11.7.2

2 years ago

11.7.1

3 years ago

11.7.0

3 years ago

11.6.0

3 years ago

11.5.2

3 years ago

11.4.0

3 years ago