question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Program does not terminate

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
yonahforstcommented, Nov 23, 2016

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

1reaction
lazywithclasscommented, Nov 23, 2016

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Java program not terminating - Stack Overflow
That's why JVM won't shut down. You need to either use daemon-threads, or shutdown the pool explicitly. Here's an example: ExecutorService ex = ......
Read more >
Program is not getting terminated - CodeRanch
The Java Virtual Machine continues to execute threads until either of the following occurs: The exit method of class Runtime has been called...
Read more >
Write a C program that does not terminate ... - Tutorialspoint
In this section we will see how to write a program in C that cannot be terminated by the Ctrl + C key....
Read more >
Write a C program that does not terminate ... - GeeksforGeeks
Write a C program that doesn't terminate when Ctrl+C is pressed. It prints a message “Cannot be terminated using Ctrl+c” and continues ...
Read more >
C++ program termination | Microsoft Learn
Learn about the standard ways to exit a C++-language program.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found