15.0.0 • Published 5 months ago
nightingale-app-react-native v15.0.0
Install
npm install --save nightingale-app-react-native
Usage
import { appLogger } from 'nightingale-app-react-native';
appLogger.info('hello');
Create children
const myServiceLogger = appLogger.child('services:myService');
myServiceLogger.debug('started');
The Logger class
See the Logger API, with all the methods you call to log things.
Library
If you're writing a library, use only nightingale-logger
Change default levels
You can override the config using configure:
import {
configure,
ReactNativeConsoleHandler,
Level,
} from 'nightingale-app-react-native';
configure(
process.env.NODE_ENV === 'production'
? []
: [
{
pattern: /^app(:|$)/,
handlers: [new ReactNativeConsoleHandler(Level.DEBUG)],
stop: true,
},
{
handlers: [new ReactNativeConsoleHandler(Level.INFO)],
},
],
);
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.8.0
2 years ago
11.9.0
2 years ago
11.8.1
2 years ago
11.7.2
2 years ago
11.7.1
3 years ago
11.7.0
3 years ago
11.7.0-alpha.0
3 years ago
11.6.0
3 years ago
11.5.2
3 years ago
11.5.1
3 years ago
11.5.0
3 years ago
11.4.0
3 years ago