15.0.0 • Published 1 year 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
1 year ago
14.2.0
2 years ago
14.2.1
2 years ago
14.0.0
2 years ago
14.1.0
2 years ago
14.0.1
2 years ago
14.0.2
2 years ago
13.0.0
3 years ago
12.1.2
3 years ago
12.1.3
3 years ago
12.1.4
3 years ago
12.0.0
4 years ago
12.1.0
3 years ago
12.0.1
4 years ago
12.1.1
3 years ago
11.7.3
4 years ago
11.7.4
4 years ago
11.8.0
4 years ago
11.9.0
4 years ago
11.8.1
4 years ago
11.7.2
4 years ago
11.7.1
4 years ago
11.7.0
4 years ago
11.7.0-alpha.0
4 years ago
11.6.0
4 years ago
11.5.2
4 years ago
11.5.1
4 years ago
11.5.0
4 years ago
11.4.0
4 years ago