You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by swirl <sw...@yahoo.com> on 2013/08/13 11:58:21 UTC

Logging uima in Tomcat application

Hi,

I am running uima inside a maven tomcat application, but I could not figure 
out how to capture the logs generated by the uima analysis engines and 
collection readers.
What is the configuration in tomcat that will let me specify the location of 
the uima logs to be stored?

I tried putting logging.properties in the WEB-INF/classes folder but it seems 
to be ignored.


Re: Logging uima in Tomcat application

Posted by Richard Eckart de Castilho <ri...@gmail.com>.
Hi,

the logging mechanism and its configuration is described here [1]. UIMA 
uses the Java Util logging API [2] by default. 

As documented in [1], you can change the logging mechanism used
by UIMA by specifying an alternative backend implementation, e.g.:

-Dorg.apache.uima.logger.class=org.apache.uima.util.impl.Log4jLogger_impl

Alternatively, you could install a  custom JUL handler and redirect the
logging output to whatever you are using. This is what e.g. the
jul-to-slf4j brigde [3] does.

Cheers,

[1] http://uima.apache.org/d/uimaj-2.4.2/tutorials_and_users_guides.html#ugr.tug.aae.logging
[2] http://docs.oracle.com/javase/6/docs/api/java/util/logging/package-summary.html
[3] http://search.maven.org/#artifactdetails%7Corg.slf4j%7Cjul-to-slf4j%7C1.7.5%7Cjar

Am 13.08.2013 um 11:58 schrieb swirl <sw...@yahoo.com>:

> Hi,
> 
> I am running uima inside a maven tomcat application, but I could not figure 
> out how to capture the logs generated by the uima analysis engines and 
> collection readers.
> What is the configuration in tomcat that will let me specify the location of 
> the uima logs to be stored?
> 
> I tried putting logging.properties in the WEB-INF/classes folder but it seems 
> to be ignored.