Logging with log4j in jetty-maven-plugin

The jetty-maven-plugin is a great way to run a webapp during development. But the main problem is that it doesn’t print debug messages when you are using commons-logging. The reason is that it by default uses org.apache.commons.logging.impl.SimpleLog. This logger can’t print debug messages. Here is the solution on how to change this default behaviour so that it use Log4J instead.

Continue reading