Java has a lot of frameworks / APIs that help you do logging in your application:
I've always used the log4j library, i found it sufficient most of the time, and extensible when i needed more control.
Anyone who had experience with more than one framework can share his experience? when is it better to use one framework over the other and from application architecture point of view? Why would i prefer one over other?
Thanks
This question seems identical to 354837.
The simple answer is that you'd go for Commons Logging if you're writing a library that may be dropped into applications where you have no control over the logging, one of the other choices if not. I personally use CL in all cases, simply because it's common -- I don't need to remember the differences between frameworks.