winston-cloudwatch: Program does not terminate

I’ve tried using the code from the readme. The message does appear in my AWS CloudWatch console, but the program does not terminate. I am using nodejs 6.2.1.

const config = require('./config.json')
const winston = require('winston')
const WinstonCloudWatch = require('winston-cloudwatch')
const moment = require('moment')

winston.add(WinstonCloudWatch, {
  logGroupName: config.cloudWatchLogGroup,
  logStreamName: config.cloudWatchStream,
  awsRegion: config.region
});

winston.info('this is a message sent at ' + moment().format('YYYY-MM-DD-hhmm') + ' from winston-cloudwatch.js');

Thanks for any assistance.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

@lazywithclass - this looks great! btw i just got kthxbye hahhahaha - perfect

@yonahforst haha 😄 Ok, I will have a look at the other method. More on that later on.

@yonahforst Ok let me think about this, I will come back with a proposal.