[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2696?page=c...
]
Steve Ebersole commented on HHH-2696:
-------------------------------------
But I was already considering dropping commons-logging in favor of direct log4j use
specifically to get these MDC/NDC features.
I would love to move away from commons-logging as well because of the classloader issues.
Additionally, I would love to keep using a wrapper/facade so that containers can properly
integrate our logging.
But I would prefer that the wrapper/facade manage this MDC, NDC. Think about what happens
otherwise: I need to statically bind in the various logging implementation classes (or at
least do silly reflection calls) anyway in order to achieve this; so I have not removed
them as dependencies. The wrapper/facade knows which underlying logging impl is being
used and could very easily delegate those MDC/NDC calls itself. Afterall, isn't this
the point of a wrapper/facade?
Consider migrating to slf4j
---------------------------
Key: HHH-2696
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2696
Project: Hibernate3
Issue Type: Improvement
Components: core
Affects Versions: 3.2.4
Reporter: Koda Janh
Original Estimate: 1 hour
Remaining Estimate: 1 hour
Please consider migrating away from commons-logging and onto slf4j for the reasons
mentioned here:
http://www.qos.ch/logging/classloader.jsp
The author of log4j went on to write "logback" which is an implementation of
slf4j that has much better performance than log4j and much cleaner output. I recommend you
evaluate these alternatives seriously and consider them for future releases of Hibernate.
To ease migration you could use the "log4j bridge" mentioned here:
http://logback.qos.ch/bridge.html
You simply replace log4j's jar by the bridge jar and all log4j method calls get
redirected to logback under the hood.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira