[xwiki-users] How can I capture an exception that is going to standard out
by Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Ok, I have an exception "java.sql.SQLException:
org.apache.commons.dbcp.PoolablePreparedStatement..." that is making it to
Tomcat's standard out log (tomcat5-stdout.2011-05-26.log). I've tried
everything I can think of in the log4j.properties file to get this exception
to either not show up at all or log to a different file. This exception does
not have any formatting like is specified in the log4j.properties file. So I
don't think it's being logged, so much as just finally falling through and
going to stdout.
I've spent all dang day trying to find a way to keep this exception from
filling my logs, or to figure out why the darn thing is happening in the
first place. I've put in a ticket for the exception, but it still hasn't
even been picked up yet. I've emailed this list, but no one was able to
help.
So I just want to log this exception somewhere else so it doesn't complicate
my main log file. Can someone explain how to do this? I fancy myself a good
programmer, but of all things this is stumping me.
Thanks,
Lenny