Third High Severity CVE in Log4j Is Published
I was pretty horrified to learn that log4j makes network calls, was even surprised to hear it parses log strings.<p>Fortunately our log4j was too old and JVM too young to be vulnerable to the first exploit, but it seemed best to rip out log4j and replace it with something simpler anyway.<p>java.util.logging seemed the obvious choice, but the API is different, so would have been a lot of s/debug/fine and so on.<p>In the end, we:<p>- wrote a new class with the same 'api' as the part of log4j that we use<p>- globally replaced 'import org.apache.log4j.Logger'  with our new class<p>- fixed any compile errors by adding new methods to our class<p>- wrote a test to make sure it rolled correctly and could handle lots of threads etc.<p>Here's the code if you want to do something similar (don't know how long it will be accessible from there): <<a href="https://ideone.com/XKg5M9" rel="nofollow">https://ideone.com/XKg5M9</a>>