[ 
https://issues.apache.org/jira/browse/UIMA-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519434
 ] 

Michael Baessler commented on UIMA-282:
---------------------------------------

I'm not sure that I understand all what you are saying...

Do you mean that we should use a commonLogging_impl class that implements the 
org.apache.uima.util.Logger interface and use internally the commons logging 
toolkit. For example LogFactory.getLog() to get a logger? 

So when doing this we don't need to have all the logging dependencies in place 
except of commons-logging.jar and the logging framework can be configured using 
the commons logging configuration.

What I currently do not understand is, what do you mean by "add it to the pom 
filtering all real implementation dependencies..." ??

I think we have to update the factoryConfig.xml file that the commons logging 
is used.

-- Michael

> Work well with Apache logging (Log4J)
> -------------------------------------
>
>                 Key: UIMA-282
>                 URL: https://issues.apache.org/jira/browse/UIMA-282
>             Project: UIMA
>          Issue Type: Wish
>          Components: Core Java Framework
>            Reporter: Greg Holmberg
>            Priority: Minor
>         Attachments: Log4jLogger_impl.java, TestLog4jLogger_impl.java
>
>
> UIMA uses the standard java.util.logging (JUL).  Most of my company's code 
> used Apache Log4J, so we have a problem merging the messages from the two 
> logging packages.  Given that UIMA is now an Apache project, I think it makes 
> sense that it work with Apache logging.
> Two options occur to me:
> 1. Change all the logging calls in the code (perhaps Eclipse refactoring 
> tools can help with that).  Here's some discussion on migrating: 
> http://www.oreillynet.com/onjava/blog/2005/12/migrating_from_jdk_logging_to.html
>  
> You could convert either to Log4J ( http://logging.apache.org/log4j/docs ) or 
> to Apache Jakarta Commons Logging ( http://jakarta.apache.org/commons/logging 
> ), which would allow UIMA to be configured to use either JUL or Log4J.
> 2. Write/find a JUL Handler that re-directs to Log4J.  Here's an example: 
> http://home.gwu.edu/~amrinder/chainsawHandler/UsingChainsawWithJDKLogging.html
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to