Re: Configure Tomcat Logging Programmatically

2013-12-10 Thread java developer
Hi, Calling tomcat.setSilent(false) might help. Just try this and see if this helps. Below is small funcation from Tomcat class. /** * Controls if the loggers will be silenced or not. * @param silentcodetrue/code sets the log level to WARN for the *

Configure Tomcat Logging Programmatically

2013-12-09 Thread Matthew Westwood-Hill
I am running Tomcat programmatically (embedded) and I wanted to configure its logging so I can track inbound request. I start Tomcat as follows: tomcat = new Tomcat(); tomcat.setBaseDir(DEFAULT_BASE_DIR); tomcat.getService().addConnector(defaultConnector);