Question

How can I set the logging levels of OpenEJB components running inside TomEE? I want to see the debug logging statements from the source code of org.apache.openejb.config.AutoConfig.

I tried modifying conf/logging.properties and adding a logging.properties file in WEB-INF\classes of my WAR but I can't find the right combination and I'm not even sure these are the right files to modify/create.

Was it helpful?

Solution

add:

OpenEJB.startup.config.level=FINE

to conf/logging.properties

This doesn't work when launching the server from Eclipse for some reason.

To make it work in Eclipse, add this to the server's launch configuration:

 -Djava.util.logging.config.file="<put catalina.base path here>/conf/logging.properties"
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

Source: http://wiki.eclipse.org/WTP_Tomcat_FAQ#How_do_I_enable_the_JULI_logging_in_a_Tomcat_5.5_Server_instance.3F

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top