My app is running in JBoss 7.2.0 and I'm using a custom log4j.properties. This is working fine but none of Hibernate logs are being logged in my custom appender.
Reading Hibernate logging documentation, it saids that we can provide a system property called org.jboss.logging.provider to choose which logger to use, in my case log4j, but that isn't working too.
How could I get Hibernate logs being logged in my custom appender?
Hibernate is a module within JBoss AS 7 which means it will use the system default logging configuration. It's not really possible to get modules to use a logging configuration from deployment. It would really cause some issues if you have multiple deployments trying to configure logging for a module.
James R. Perkins