-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Events close to the exit time of the program don't get written #10
Comments
Huh. It's supposed to @psiniemi. In the Can you explain the execution path to me more? Thanks. |
I'm going to close this since no response. Feel free to reopen. |
You'll need to have some code that will call the logback's See
For example for standalone Java applications to have something like this in
Maybe this should be mentioned in README.md? |
Having said that, it seems that I am also losing last few messages, even though I am using the shutdownHooks etc described above. I have a standalone Java app, that basically just logs stuff from multiple threads and then exits (returns from |
Created PR for this issue: By using shutdown hook we can properly handle writing remaining events into CloudWatch. |
ShutdownHook did not work for me for a short running Spring Boot Application running in a Docker container using AWS FarGate. I created this class and defined it for Spring Boot using the system property.
I also reduced the to 2.5 seconds in my logback-spring.xml file.
|
The appender does not try to flush remaining messages to CloudWatch on stop, so final messages typically don't get written. These messages are specially important in the case of failures that cause an exit or short-lived workloads.
The text was updated successfully, but these errors were encountered: