ppkarwasz commented on issue #3577:
URL: 
https://github.com/apache/logging-log4j2/issues/3577#issuecomment-2758976647

   > This said, the Socket Appender (i.e., `AbstractOutputStreamAppender`) will 
still dump the `Unable to write to stream` to the status logger anyway. I think 
we can indeed improve there. Instead of `log + throw` (which is the case right 
now), we can switch the behavior to just `throw`. 
[@ppkarwasz](https://github.com/ppkarwasz), WDYT?
   
   I agree, exceptions should not be logged, but wrapped in an 
`AppenderLoggingException` and rethrown. At the end there is an (currently 
non-customizable) 
[`ErrorHandler`](https://logging.apache.org/log4j/2.x/javadoc/log4j-core/org/apache/logging/log4j/core/ErrorHandler.html)
 that can decide what to do with them.


-- 
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