nextrans-log
v0.1.16
Published
Logging for nextrans app service
Downloads
18
Readme
Nextrans Logging
How to use
import Logging from 'nextrans-log';
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();