vy commented on issue #1884:
URL: 
https://github.com/apache/logging-log4j2/issues/1884#issuecomment-1782439646

   Thanks so much for sharing these details, much appreciated.
   
   > ... non-transient logger-fields in abstract parent classes to avoid to 
declare the logger in each of the child-classes.
   
   non-`transient` fields – be it of type `Logger` or something similar – 
unrelated with DTO they are situated in are an accident waiting to happen. I 
would strongly advise you to refactor your code rather than relying on the fact 
that Log4j types are serializable, which won't hold anymore in Log4j 3. Is such 
a refactoring possible in your case? If not, would you mind sharing details?


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