There is one logger configuration per logger repository. Have you tried copying the hibernate config into your own config? After all, logging is for your benefit, not Hibernate's. Your config should be in control.

Jake

nikkomarc wrote:
Hi,

I have a java project that uses the hibernate and log4j framework. For the
project, I created a log4j.properties file which contains:

log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%5p] %X{appName} %d{mm:ss}
(%F:%M:%L)%n%m%n%n

I am able to log my statements using log4j properties.  However, hibernate
logging is also using my log4j properties.  I would like hibernate to use
its own log4j properties but my properties seem to override it.  How can I
use my log4j properties for my project but still keep the log4j properties
for Hibernate related logging?

Thank you,

Marc

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to