cloudwatch-logback-appender
cloudwatch-logback-appender copied to clipboard
Use shutdown hook to write the remaining events
Use shutdown hook to write the remaining events to CloudWatch when JVM shuts down.
Thanks for this. I don't like making this a default. Making network connections while the JVM is shutting down seems like something the user can opt into. Maybe add a boolean to the configuration and default it to false?
@j256 I have added a new flushEventsOnShutdown
param to control this behavior.