My eclipse book has a really small section on logging, with a
convenience class for calling the Eclipse logging methods. I added to it
a bit and checked it in. I wrote some quick logging guidelines to go
with it...
http://sourceforge.net/docman/display_doc.php?docid=25612&group_id=123169
Feel free to edit it if you have any ideas for changes. Apparently
SourceForge's CSS makes anything inside <code></code> look like crap (at
least on my computer), but I didn't really want to spend the effort to
pretty it up.
Basically the idea is to use the static logInfo, logWarning, and
logError methods... attach an exception whenever possible, and include a
*meaningful* message whenever possible. Common sense stuff.
Liam
|