I will have a look at this library too, which is used, by the way, by the NetCDF library.
Thanks !

Le 30 janv. 09 à 07:24, Jody Garnett a écrit :

Here is the tricky logging library I was thinking of that may help you; it implements the same classes as are found in commons logging, log4j and others in order to take charge of the whole lot from whatever libraries you are using.
- http://www.slf4j.org/


On Fri, Jan 30, 2009 at 5:21 PM, Jody Garnett <jody.garnett@gmail.com> wrote:
Check out the user guide advanced section on logging; you can actually choose what logging system geotools uses (since we get stuck with apps using log4j and other apps using java logging etc...)
- http://docs.codehaus.org/display/GEOTDOC/Logging

If you have any additional questions (or can get useful answers out of this user list here) let me know and we can update the page.

For other libraries use by uDig you may need to look at their documentation to see if you can control their logging. The ones that use commons logging are pretty easy to hack at.

Note there are some very very evil tricks in order to step up and take control of logging from a number of apis...
- http://day-to-day-stuff.blogspot.com/2007/10/announcement-version-99-does-not-exist.html



On Fri, Jan 30, 2009 at 3:36 AM, Benoît Thiébault <thiebault@artenum.com> wrote:
Hi everyone !

When the EPSG database is created, an INFO log message is written in
the console to tell you that the creation is going to take a while.

I am using Log4j as logging system for my application and I would like
to redirect this message to another appender, a graphical dialog that
is more user friendly than a console log. How can I do this ?

I tryed this, but it works only for my log messages, not that specific
one :

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

       <appender name="gui"
               <param name="threshold" value="INFO" />
               <layout class="org.apache.log4j.PatternLayout">
                       <param name="ConversionPattern" value="%-5p [%c] - %d %m%n" />

       <logger name="org.geotools.referencing.factory.epsg">
               <appender-ref ref="gui" />

               <appender-ref ref="gui" />


This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
Geotools-gt2-users mailing list

Benoît Thiébault

  Société Artenum
  24 rue Louis Blanc, 75010 Paris
  tel: +33 (0)1 46 94 67 54

  Artenum - Science & Groupware - http://www.artenum.com