-
Notifications
You must be signed in to change notification settings - Fork 46
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
Logs not sent on application closing #43
Comments
Thank you for the good word! :) Happy to help. Shipping last logs may be a bit tricky. Once Log4j2 Lifecycle.stop() is called, <Configuration status="INFO">
...
</Configuration> So, you may have hit the 5000ms period when the Root Logger (or maybe even last open Console appender) was still able to log some messages, but You may try to set Long story short: delivery guarantee on shutdown is difficult to achieve even when shutting down gracefully. |
Hi @rfoltyns , No problem :) Thanks a lot for the reply |
No problem. I hope it was enough to help you make a decision on your next steps. I had some more thoughts on logging on shutdown though. Since logging should be torn down at the very end of application lifetime, IMHO any logging happening after the tear down should be considered obsolete. If it's critical for your business, can happen a bit earlier? Another option would be to switch to programmatic config (see example) and control the lifecycle of |
Description
I tried this plugin and I must say it works great thank you !
But I've noticed in my application that last log in my application doesn't appear in ES.
Configuration
I use this plugging to provide a logstash for the buildsystem that we use : Quickbuild (www.pmease.com)
Runtime (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: