Hi Egon,
some additional remarks: If I set logging in code to level "warn" then it is
displayed but not when using debug. (eg. logger.warn(myMessage) works but not
logger.debug(myMessage)).
I'm running the code and tests in Netbeans. Currently is just use Stdout for
logging.
Note that I'm currently not interessted in the cdk output but the output of my
projects logging based on CDK. And this logging seems to be influenced with the
new cdk-version. This probably was not clear from my initial post.
So log output of my personally written code does not work, only if level is set
to warn in code. Configuration file of logback has no influence and the format
logged is also different from that in my Config file.
Hope this si understandable,
Regards,
Thomas
> From: egon.willigha...@gmail.com
> Date: Sat, 4 Dec 2010 12:18:46 +0100
> Subject: Re: [Cdk-user] logging disabled with cdk-1.3.7
> To: beginn...@hotmail.de
> CC: cdk-user@lists.sourceforge.net
>
> Hi Thomas,
>
> On Wed, Nov 24, 2010 at 8:25 AM, Thomas Strunz <beginn...@hotmail.de> wrote:
> > I'm doing a small project for school using cdk and started with version
> > 1.2.7. I now switched to 1.3.7 and all logging from my project is now
> > disabled.
>
> How are you running your code?
>
> Both version should have logging disabled by default, which you can
> enable by running the CDK-based code with:
>
> java -Dcdk.debugging=true -Dcdk.debug.stdout=true your.cdk.using.Class
>
> > It worked with 1.2.7 and I can easily reproduce the issue by
> > switching back.
> > I use slf4j-1.6.1 and logback 0.9.26 and I use the cdk-jar with all
> > dependencies for simplicity.
>
> Were you using the logging to file functionality, using log4j? If so,
> that could interfere with these two libraries...
>
> In CDK 1.3 you can write a custom ILoggingTool implementation that
> makes use of your favorite logging utility. The output to STDOUT uses
> this API too:
>
> https://github.com/cdk/cdk/blob/master/src/main/org/openscience/cdk/tools/SystemOutLoggingTool.java
>
> Bioclipse also has a custom implementation:
>
> https://github.com/bioclipse/bioclipse.cheminformatics/blob/master/plugins/net.bioclipse.cdk.business/src/net/bioclipse/cdk/logging/BioclipseLoggingTool.java
>
> It is important to set your custom ILoggingTool before you run any CDK
> code, which you can do with
> LoggingToolFactory.setLoggingToolClass(..):
>
> https://github.com/cdk/cdk/blob/master/src/main/org/openscience/cdk/tools/LoggingToolFactory.java
>
> Egon
>
> --
> Dr E.L. Willighagen
> Postdoctoral Research Associate
> University of Cambridge
> Homepage: http://egonw.github.com/
> LinkedIn: http://se.linkedin.com/in/egonw
> Blog: http://chem-bla-ics.blogspot.com/
> PubList: http://www.citeulike.org/user/egonw/tag/papers
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user