chanani commented on issue #4028:
URL: 
https://github.com/apache/logging-log4j2/issues/4028#issuecomment-3815023384

   Hi @nielsm5 @vy , I'd like to work on this issue.
   
   **Expected fix:** Change the catch block from `Exception` to `Throwable`:
   ```java
   } catch (final Throwable ignored) {  // Changed from Exception
       // Do nothing
   }
   ```
   
   This will properly handle `NoClassDefFoundError` and prevent the 
AppenderLoggingException.
   
   I'll include a test case for custom classloaders throwing 
`NoClassDefFoundError`. 
   
   May I submit a PR for this?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to