From: Egon W. <e.w...@sc...> - 2005-11-11 07:26:55
|
On Thursday 10 November 2005 10:40 pm, Uli Fechner wrote: > there are a lot of logger calls in the CDK classes. However, my cdk.log > file is always empty. I think that I somehow have to enable logging. How > do I actually do that? Depends... Existing Applications ====================== If running an existing applications (i.e. Jmol, JChemPaint...) you can run it like: java -Dcdk.debugging=true -jar SomeJar.jar which will fill the cdk.log Additionally, you can do: java -Dcdk.debugging=true -Dcdk.debug.stdout=true -jar SomeJar.jar which will output the debugging info to STDOUT. Custom Applications ==================== If referring to custom applications, then you also need to make sure to configure the LoggingTool. See the API for that class on how to do that. It needs to be done only once. In the CDK based applications, this is required to, which is, for example, the reason why all JUnit classes nowadays CDKTest, which takes care of this. Egon |