rschmitt commented on PR #3880:
URL: https://github.com/apache/logging-log4j2/pull/3880#issuecomment-3193978469

   > If logging is a vital component of your application, and it doesn't work, 
I think it is reasonable to signal that the application is down.
   
   See, this is what I thought too, but over the years we had so many outages 
caused by blocking log statements that we adopted these overridden defaults 
years ago, and I'm not aware of any problems that they've caused. Additionally, 
the default logging behavior is synchronous, right? If you opt in to 
asynchronous logging, you already run the risk of a crash causing all of the 
buffered log messages to be lost (and the log statements leading up to the 
crash are probably the most important ones!). The current defaults seem like 
the worst of both worlds: you're exposed to the risk of data loss _and_ the 
risk of an outage caused by indefinite blocking. The principled reason to 
discard instead of blocking is that that's the only way to guarantee 
asynchronous behavior (which is probably what you _think_ you're opting in to 
by using async logging in the first place).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to