logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John2000 <johnk...@gmail.com>
Subject Log4j.xml setting for Hibernate not working
Date Mon, 16 Nov 2009 11:56:31 GMT

We are using log4j.xml for logging. Everything is working fine except
hibernet logging. All logs files are crated but for hibernate only log file
is created and it remains empty.

My log4j.xml settings are

    <appender name="HIBERNATELOG" 
            class="org.apache.log4j.RollingFileAppender">
            
            
            
            
    
            <layout
                class="com.common.logging.client.CommonLoggingLayout">
                  
                  
            </layout>
    </appender>



<logger name="org.hibernate" additivity="false">
 	        <level value="DEBUG"/>
 	        <appender-ref ref="HIBERNATELOG"/>
</logger>


here ../log/hibernate.log file is created in tomcat but nothing after that.
I can see logs on console and in cataline.out file.

Please help.

Thanks in advance.

-- 
View this message in context: http://old.nabble.com/Log4j.xml-setting-for-Hibernate-not-working-tp26370675p26370675.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message