4 ms·
Where can I find an explanation of the problem(s) log4j actually solves? The home page doesn't do it. The wikipedia article doesn't do it. I remember when it f
by pezzana 5y ago
Where can I find an explanation of the problem(s) log4j actually solves? The home page doesn't do it. The wikipedia article doesn't do it.
I remember when it first came out and couldn't think of a single use for it that couldn't be addressed in a cleaner way.
- shepherdjerred 5y agoIt solves logging
- bdamm 5y agoDo you know what logging is? It's something basically all developers use to understand what is happening inside their program. log4j provides an easy to use and flexible logging facility so programmers can quickly move past basics and into getting the work done. In the old days, programmers would write their own logging code. In the modern era, basically all operational environments want to get that logging data and tools like splunk and SIEM products use it for understanding how well services are running, looking for security problems, etc. Logs also need to be rotated, not overflow the hard disk, might need to be sent elsewhere. So for the combination of being easy to use but flexible to configure, something like log4j is perfect. Basically all languages have something like log4j. slf4j is also a popular java logging package. Sometimes slf4j and log4j are used together. How would you do it "cleaner"? Write your own?