Are you sure that your log configuration file is picked up? Maybe there is 
annother config file on the class path which is used before yours is found.
I have no problems on Tomcat with special hibernate loggers.
Heri

-----Ursprüngliche Nachricht-----
Von: John2000 [mailto:[email protected]] 
Gesendet: Montag, 16. November 2009 12:57
An: [email protected]
Betreff: Log4j.xml setting for Hibernate not working


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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to