You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ctakes.apache.org by Chase Master <ch...@gmail.com> on 2013/07/31 16:53:14 UTC

logger for assertion module

Hi,
I am relatively new to ctakes.  I have created my own Maven application,
and have specified the ctakes-clinical-pipeline as a dependency in the pom
file (I have not checked out the project itself).  The comments
on CTAKES-76, "get third party dependencies into Maven Central", have
helped me to get this going.  I am using
ctakes-clinical-pipeline-3.0.0-incubating, since this is what I can find in
the Maven repository.

I was wondering why the ctakes-assertion module uses the java.util logger
instead of log4j, like many of the other modules?  I would prefer not to
modify ctakes directly but to configure the logging properties for my
application.  I am able to do this for the modules which use log4j with an
xml configuration file.

Thanks!

Re: logger for assertion module

Posted by Chase Master <ch...@gmail.com>.
Thank you,
Yes, I had to download the resources and descriptor files separately, and
add them to my project.  I also had to add the third party dependencies
separately to my pom file.

Regarding the loggers, I think I will submit a JIRA.  The reason is that it
is hard to configure the java logger console handler from my application
since I don't directly instantiate the assertion classes, but they are run
from the pipeline.  However, I was able to configure the log4j handlers
from the xml configuration file which worked for the other modules which
use log4j, and so I was able to suppress the console output for most of the
pipeline. Also, the assertion module has many print statements in addition
to the logger statements which would be nice to turn off...
Thanks


On Wed, Jul 31, 2013 at 10:05 AM, Chen, Pei
<Pe...@childrens.harvard.edu>wrote:

> Hi Chase Master,
> Welcome-
> > Hi,
> > I am relatively new to ctakes.  I have created my own Maven application,
> and
> > have specified the ctakes-clinical-pipeline as a dependency in the pom
> file (I
> > have not checked out the project itself).  The comments on CTAKES-76,
> "get
> > third party dependencies into Maven Central", have helped me to get this
> > going.  I am using ctakes-clinical-pipeline-3.0.0-incubating, since this
> is what I
> > can find in the Maven repository.
> The code is available via maven central.  But as you can see, there are
> still some minor issues that need to be resolved (mainly- loading of
> rources, models).  You may still need to download and add them locally to
> the classpath of your project.  Hopefully this will be resolved in the
> future releases.  If you would like to help out with this, we would welcome
> that as it would be good to try the use case of using ctakes just as a
> dependency.
>
> > I was wondering why the ctakes-assertion module uses the java.util logger
> > instead of log4j, like many of the other modules?  I would prefer not to
> > modify ctakes directly but to configure the logging properties for my
> > application.  I am able to do this for the modules which use log4j with
> an xml
> > configuration file.
> I think Log4j should be able to work peacefully with other loggers
> including the java one.  But feel free to create a jira issue (anyone
> should be able to create an account) for tracking purposes, and we'll try
> and update it next chance we get...
>
> >
> > Thanks!
>

RE: logger for assertion module

Posted by "Chen, Pei" <Pe...@childrens.harvard.edu>.
Hi Chase Master,
Welcome-
> Hi,
> I am relatively new to ctakes.  I have created my own Maven application, and
> have specified the ctakes-clinical-pipeline as a dependency in the pom file (I
> have not checked out the project itself).  The comments on CTAKES-76, "get
> third party dependencies into Maven Central", have helped me to get this
> going.  I am using ctakes-clinical-pipeline-3.0.0-incubating, since this is what I
> can find in the Maven repository.
The code is available via maven central.  But as you can see, there are still some minor issues that need to be resolved (mainly- loading of rources, models).  You may still need to download and add them locally to the classpath of your project.  Hopefully this will be resolved in the future releases.  If you would like to help out with this, we would welcome that as it would be good to try the use case of using ctakes just as a dependency.

> I was wondering why the ctakes-assertion module uses the java.util logger
> instead of log4j, like many of the other modules?  I would prefer not to
> modify ctakes directly but to configure the logging properties for my
> application.  I am able to do this for the modules which use log4j with an xml
> configuration file.
I think Log4j should be able to work peacefully with other loggers including the java one.  But feel free to create a jira issue (anyone should be able to create an account) for tracking purposes, and we'll try and update it next chance we get...

> 
> Thanks!