Ellow,
I'm running a java application on Websphere 6. I'm also using hibernate, spring and log4j. When hibernate gives problems, Websphere is logging these problemes in HIS logfile (SystemOut.log). I want to specify my own logfile but this seems to go wrong. Also when I do an insert, update or delete Websphere is logging this in his logfiles. My current log4j configuration is
log4j.rootLogger=DEBUG, unexpected
log4j.logger.org.hibernate=DEBUG, hibernate
log4j.additivity.org.hibernate=false
log4j.appender.hibernate.Encoding=UTF-8
log4j.appender.hibernate=org.apache.log4j.RollingFileAppender
log4j.appender.hibernate.File=Z:/logs/single_engine/hibernate.log
log4j.appender.hibernate.MaxFileSize=10000KB
log4j.appender.hibernate.MaxBackupIndex=10
log4j.appender.hibernate.layout=org.apache.log4j.PatternLayout
log4j.appender.hibernate.layout.ConversionPattern=%d %5p [%t] %c{1} - %L %m%n
A part of my Spring configuration is:
<prop key="hibernate.show_sql">${something.hibernate.show_sql}</prop> (for logging the sql results)
I hope somebody can help me. Thank in advance.
Kind regards,
Kimme
I'm running a java application on Websphere 6. I'm also using hibernate, spring and log4j. When hibernate gives problems, Websphere is logging these problemes in HIS logfile (SystemOut.log). I want to specify my own logfile but this seems to go wrong. Also when I do an insert, update or delete Websphere is logging this in his logfiles. My current log4j configuration is
log4j.rootLogger=DEBUG, unexpected
log4j.logger.org.hibernate=DEBUG, hibernate
log4j.additivity.org.hibernate=false
log4j.appender.hibernate.Encoding=UTF-8
log4j.appender.hibernate=org.apache.log4j.RollingFileAppender
log4j.appender.hibernate.File=Z:/logs/single_engine/hibernate.log
log4j.appender.hibernate.MaxFileSize=10000KB
log4j.appender.hibernate.MaxBackupIndex=10
log4j.appender.hibernate.layout=org.apache.log4j.PatternLayout
log4j.appender.hibernate.layout.ConversionPattern=%d %5p [%t] %c{1} - %L %m%n
A part of my Spring configuration is:
<prop key="hibernate.show_sql">${something.hibernate.show_sql}</prop> (for logging the sql results)
I hope somebody can help me. Thank in advance.
Kind regards,
Kimme