Tagged with "java"
Redirecting "derby.log" To An SLF4J Logger
More and more, I find myself using Apache Derby as an embedded database for personal projects. One inconvenience, however, is the persistentderby.log
file than inevitably gets created at startup. It can, of course, be disabled entirely, but I'd like Derby errors to be put into my application logs, currently ... read more
Tracing Servlet Requests
Tracing through Servlet-based web application log files isn't always as convenient as one may hope. Sure, when using Tomcat, we may rely on the thread names (such ashttp-8080-2
), but sometimes they seem to bleed into each other resulting in a difficult structure to grep
. Compounding this, an ... read more
Suppressing An Appender For A Log4J Logger
Occasionally, a third-party library will balk the log-or-throw exception handling convention. Most recently, I came across this issue with Hibernate's Work API: anorg.hibernate.exception.ConstraintViolationException
was being logged and thrown when a unique key constraint was violated. To be exact, Hibernate's JDBCExceptionHelper
logged exceptions through JDBCExceptionReporter
. The flow was similar ... read more