Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helper method to call process exit #23

Merged
merged 1 commit into from Aug 16, 2017

Conversation

@Shwetajain148
Copy link

@Shwetajain148 Shwetajain148 commented Aug 8, 2017

@mchaudhary, @mostlyjason, I have created and exposed the flushLogsAndExit method to call process.exit() after 10 seconds. Users can call this method to call process.exit internally after 10 seconds.

They will need to do something like below in their app.js file:

var winston = require('winston'),
winlog = require('winston-loggly-bulk');

winlog.flushLogsAndExit();
@Shwetajain148
Copy link
Author

@Shwetajain148 Shwetajain148 commented Aug 11, 2017

Fix of #19

@mchaudhary mchaudhary merged commit e35aaae into loggly:master Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.