java - Hibernate interfering with Javamail logging -
i building application using javamail.
for logging purposes, set:
properties.put("mail.debug", true);
that enabled logging javamail , gives me lot of useful debugging info.
now, installed hibernate prints lot of info console (except sql statements uses) out of sudden, javamail logging info disappeared.
i not sure cause assume hibernate has this.
does know how solve or @ least debug issue?
i replaced entire log4j config file , solved problem:
log4j.appender.stdout=org.apache.log4j.consoleappender log4j.appender.stdout.target=system.out log4j.appender.stdout.layout=org.apache.log4j.patternlayout log4j.appender.stdout.layout.conversionpattern=%d{absolute} %5p %c{1}:%l - %m%n log4j.appender.file=org.apache.log4j.fileappender log4j.appender.file.file=hibernate.log log4j.appender.file.layout=org.apache.log4j.patternlayout log4j.appender.file.layout.conversionpattern=%d{absolute} %5p %c{1}:%l - %m%n log4j.rootlogger=info, stdout log4j.logger.net.sf.hibernate=debug log4j.logger.net.sf.hibernate.ps.preparedstatementcache=debug log4j.logger.org.hibernate.sql=debug log4j.logger.org.hibernate.type=trace
Comments
Post a Comment