tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Westwood-Hill <matthew.westwood-h...@nuix.com>
Subject Configure Tomcat Logging Programmatically
Date Mon, 09 Dec 2013 05:46:17 GMT
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);

tomcat.setConnector(defaultConnector);

tomcat.init();

tomcat.start();



How do I go about configuring the logging?



Cheers,

Matt

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message