Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log4J problems

Status
Not open for further replies.

kimme123

Programmer
Joined
Oct 16, 2006
Messages
3
Location
BE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top