qos-ch / slf4j

Simple Logging Facade for Java
http://www.slf4j.org
MIT License
2.32k stars 980 forks source link

Improved handling of throwables in message formatting. #391

Open zorba128 opened 7 months ago

zorba128 commented 7 months ago

Related issue

This PR proposes improved exception extraction during message formatting. It simplifies whole process and improves performance (avoids unnecessary construction of NormalizedParameters, avoids copying/truncating argsArray).

Still some work to be done - logger implementations can now be simplified in many cases.

zorba128 commented 7 months ago

relates to #166, but I believe this PR solves issue in more straightforward and efficient way (no need to double-parse message).