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

winston end command, don't flush on AWS #177

Open
ordimans opened this issue Mar 6, 2022 · 3 comments
Open

winston end command, don't flush on AWS #177

ordimans opened this issue Mar 6, 2022 · 3 comments

Comments

@ordimans
Copy link

ordimans commented Mar 6, 2022

Hello

I think I am using the module incorrectly.

I send the logs to AWS, except at the end of my main function I have this

 logger.on('finish', () => {
         process.exit();
     });

logger.end()

and in this case, the traces are not pushed to AWS.

If I put

setTimeout(() => {logger.end()},5000)

It works.
If I don't put

logger.end()
,the end of the program never happens.

@zwezheng
Copy link

+1

1 similar comment
@harithzainudin
Copy link

+1

@lazywithclass
Copy link
Owner

I will also look into this as part of #193 work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants