4 ms·
Do 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
by bdamm 5y ago
Do 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?