nextrans-logger
v0.2.5
Published
Logging for nextrans app service
Downloads
150
Readme
Nextrans Logging
How to use
import Logging from 'nextrans-logger';
const logging = new Logging({
env: 'PRODUCTION',
enable: true,
slackWebhook: 'https://hooks.slack.com/services/xxx/xxx/xxx',
cloudwatchOption: {
group: 'main-service',
stream: 'production',
region: 'ap-souteast-1',
credential: {
accessKey: 'xxxxx',
secretKey: 'xxxxx'
}
}
});
export default logging.log();