controlling the jolokia logs to a tomcat xyz.txt logs
Greetings. Please direct me to the user manual etc. I'm the guy who's tuning up our product to fit and work in a production env. Another fellow did the development. I notice alot of jolokia loging to the tomcat (v5) logs directory to the interface-date.txt files.
Re: controlling the jolokia logs to a tomcat xyz.txt logs
currently, logging is always redirected to the servlet's log, which for tomcat is redirected into its own log. There are plans to provide alternative logging hooks (e.g. log4j or logback).
However, Jolokia is very quite in the default mode, writing out only a single line during startup whether a security policy is active or not.
What you see currently is the result, when debugging is switched on. I highly recommend to switch it off for production environments.
This can be done by changing the Jolokia servlet's init-param "debug" in WEB-INF/web.xml within jolokia.war to "false". You have to repackage jolokia.war for this, though.
The debug level can be changed dynamically, too, by setting the attribute "Debug" on the JMX MBean "jolokia:type=Config" to false or true via a JMX call. This value is reset to the init parameter mentioned above after a server restart.