From: Uli F. <u.f...@ch...> - 2005-11-10 21:38:47
|
Hi all, 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? Thanks, Uli |
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 |
From: Egon W. <e.w...@sc...> - 2005-11-11 07:28:21
|
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? Are we stil happy with using Log4J? We started using when it was the most advanced solution, and no Apache logging tool was around, nor in the SUun JVM... Should we look for more up to date alternatives? Egon |
From: Christoph S. <c.s...@un...> - 2005-11-11 12:12:20
|
Egon Willighagen wrote: > On Thursday 10 November 2005 10:40 pm, Uli Fechner wrote: >=20 >>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. Ho= w >>do I actually do that? >=20 >=20 > Are we stil happy with using Log4J? >=20 > We started using when it was the most advanced solution, and no Apache = logging=20 > tool was around, nor in the SUun JVM... >=20 > Should we look for more up to date alternatives? Sure. Are there any? I'm using logging for debugging purposes and in many instances it is much= more=20 valuable than any debugger. Cheers, Christoph --=20 Priv. Doz. Dr. Christoph Steinbeck (c.s...@un...) Head of the Research Group for Molecular Informatics Cologne University BioInformatics Center (http://almost.cubic.uni-koeln.d= e) Z=FClpicher Str. 47, 50674 Cologne Tel: +49(0)221-470-7426 Fax: +49 (0) 221-470-7786 What is man but that lofty spirit - that sense of enterprise. ... Kirk, "I, Mudd," stardate 4513.3.. |
From: Ola S. <ola...@fa...> - 2005-11-11 13:07:40
|
Are there any features that are missing from log4j? Apart from using an external properties-file I have no further RFE for CDK logging. But I only use it occasionally. However, if CDK could be initialized with an external properties-file (or even programatically) that would greatly simplify the logging unification process I'm currently investigating for my/our partly CDK-based application. .../Ola On Fri, 2005-11-11 at 13:12, Christoph Steinbeck wrote: > Egon Willighagen wrote: > > 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? > > > > > > Are we stil happy with using Log4J? > > > > We started using when it was the most advanced solution, and no Apache logging > > tool was around, nor in the SUun JVM... > > > > Should we look for more up to date alternatives? > > Sure. Are there any? > I'm using logging for debugging purposes and in many instances it is much more > valuable than any debugger. > > Cheers, > > Christoph |