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

Ensure the logs are sent to the LogDNA platform in serverless functions environment #38

Open
hamboomger opened this issue Dec 1, 2021 · 1 comment

Comments

@hamboomger
Copy link

I use the logdna-winston transport inside of a Firebase Functions environment and I need some way to ensure that the logs are sent to the server before the function execution is finished. First thing that came to my mind is to set the flushLimit: 0 in the options, but that's rather a hack then a true solution (and I'm not sure it will even work).
I know there's also flush() method from the @logdna/logger library, but I have no idea if I can access this method from the logdna-winston transport.

@hamboomger
Copy link
Author

hamboomger commented Dec 1, 2021

I could also use the cleared flag from @logdna/logger library, but I'm not sure how can I access this flag as well

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

1 participant