Yes for the program I'm developing (for bio vs crystal contacts 
identification) I needed some proper logging. That's why I decided to 
give a go to one of the logging frameworks.
<br>
<br>First I tried the logging from the standard java library but I was not 
very happy with it. Then I went for log4j which as usual with apache 
things is a lot better.
<br>
<br>Now I did see this apache commons logging thing, it seems like a meta 
logging framework to use different frameworks underneath. But to be 
honest it fell a bit like an overkill. I know in the long-run is 
probably not, but at that point I couldn't be bothered. Anyway the 
implementation change shouldn't be very difficult if we want to do it. 
The real difficult thing with logging is the logging itself! what 
messages to write, which level to put them in etc. After some experience 
using it I've realised it really is not easy!
<br>
<br>Anyway I definitely recommend it, the basic usage really is very simple, 
all you need is to declare this constant in your class:
<br>
<br>private static final Logger LOGGER = Logger.getLogger(UniprotEntry.class);
<br>
<br>and then you use it like:
<br>
<br>LOGGER.error("An error happened");
<br>LOGGER.fatal("A real bad error");
<br>
<br>Jose
<br>
<br><br><div class="gmail_quote">On 4 August 2010 14:38, Henning Stehr <span dir="ltr"><<a href="mailto:stehr@molgen.mpg.de">stehr@molgen.mpg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Jose,<br>
<br>
I just looked through the history of OWL. The package is really<br>
getting more and more powerful. Great work. I saw that you also<br>
started to use logging which I think is really a good idea. I'm not<br>
sure which implementation you used but may I suggest to use the apache<br>
commons-logging? It looks almost like log4j but it is in fact just an<br>
adapter that can be used with different logging implementations in the<br>
calling application. This way we don't restrict ourselves to any of<br>
log4j/java logging/etc...<br>
<br>
Cheers,<br>
Henning<br>
<br>
_______________________________________________<br>
Owl-devel mailing list<br>
<a href="mailto:Owl-devel@bioinformatics.org">Owl-devel@bioinformatics.org</a><br>
<a href="http://www.bioinformatics.org/mailman/listinfo/owl-devel" target="_blank">http://www.bioinformatics.org/mailman/listinfo/owl-devel</a><br>
</blockquote></div><br>