I run mvn tomcat: run-war target and get a directory structure that has a log directory. But alas, there is no magazine. I would just replace it with log4j logging, but it has proven difficult for a number of reasons.
I tried to explicitly configure the log file configuration. My pom.xml definition currently looks like this:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <configuration> <port>8084</port> <systemProperties> <java.util.logging.config.file>${basedir}/src/main/webapp/WEB-INF/logging.properties</java.util.logging.config.file> </systemProperties> </configuration> <version>1.1</version> </plugin>
During startup, I see the property being read. My properties file is below; I dump things in / tmp to make sure I know where to look.
handlers = 1catalina.org.apache.juli.FileHandler, \ 2localhost.org.apache.juli.FileHandler, \ 3manager.org.apache.juli.FileHandler, \ java.util.logging.ConsoleHandler .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
I would be very grateful if anyone had thoughts.
jintrone
source share