Force Jboss logging to use of SLF4J

Abbadon picture Abbadon · Feb 6, 2013 · Viewed 7.1k times · Source

I am using Hibernate 4.0 and Coldfusion 8 with Jrun which unfortunately has log4j already included and I can't remove it and the version of log4j is too old (no trace). Therefore Hibernate can't work. I would like to force Jboss Logging to use SLF4j for which I have added a binding to a custom log4j.

Answer

James R. Perkins picture James R. Perkins · Feb 7, 2013

I can't remember off the top of my head which version of JBoss Logging this was in, but try adding a system property of org.jboss.logging.provider=slf4j. Note though it will only work if you're using logback as well since SLF4J is only a facade like JBoss Logging not a log manager.