Find a method in the Java logging framework scenario

Java has many frameworks / APIs to help you log in to your application:

>The Java API has java util. Logging package. > Apache log4j. > Apache's common logging. > Slf4j (logging facade). > jLo. There are more

I've been using the log4j library, and I find it sufficient most of the time and extensible when I need more control

Can anyone with more than one framework experience share his experience? From an application architecture perspective, when is it better to use one framework than another? Why do I prefer one?

thank you

Solution

This problem seems to be the same as 354837

The simple answer is that if you are writing a library that may be put into an application that cannot control logging, you can choose common logging. If not, you can choose one of the other options I personally use CL in all cases because it's common - I don't need to remember the differences between frameworks

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>