I am using Hibernate, and I have difficulty in disabling the logging for the console even when i have the logback.xml on the classpath I am not able to disable the logging. I have also set Showsql to false. I read else where that We have to disable logging in log4j and other libs. I am listing a list of libs which I have include in the project.They are...
c3p0-0.9.5.jar 477kB
c3p0-oracle-thin-extras-0.9.5.jar
commons-pool-1.6.jar
mchange-commons-java-0.2.9.jar
commons-codec-1.9-sources.jar
commons-codec-1.9-test-sources.jar
commons-codec-1.9-tests.jar
commons-codec-1.9.jar
commons-collections.jar
commons-digester.jar
commons-io-2.4.jar
commons-lang-2.1.jar
commons-digester1.6.jar
commons-fileupload-1.3.1.jar
commons-logging-1.2.jar
commons-logging.jar commons-validator.jar
servlet-api.jar
hibernate-envers-4.3.6.Final.jar
hibernate-entitymanager-4.3.6.Final.jar
hibernate-jpamodelgen-4.3.6.Final.jar
hibernate-osgi-4.3.6.Final.jar
org.osgi.compendium-4.3.1.jar
org.osgi.core-4.3.1.jar
antlr-2.7.7.jar dom4j-1.6.1.jar
hibernate-commons-annotations-4.0.5.Final.jar
hibernate-core-4.3.6.Final.jar
hibernate-jpa-2.1-api-1.0.0.Final.jar
jandex-1.1.0.Final.jar
javassist-3.18.1-GA.jar
jboss-logging-3.1.3.GA.jar
jboss-logging-annotations-1.2.0.Beta1.jar
jboss-transaction-api_1.2_spec-1.0.0.Final.jar
Logback.xml as follows:
<?xml version="1.0" encoding="utf-8"?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" threshold="OFF">
<root>
<priority value ="off" />
<appender-ref ref="console" />
<appender-ref ref="rolling-file" />
</root>
</log4j:configuration>
I also added domain.xml as follows:
<system-properties>
<property name="org.apache.cxf.logging.enabled" value="true"/>
</system-properties>
All this is not helping. Thanks.