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"
                class="path.to.my.Log4jAppender">
                <param name="threshold" value="INFO" />
                <layout class="org.apache.log4j.PatternLayout">
                        <param name="ConversionPattern" value="%-5p [%c] - %d 
%m%n" />
                </layout>
        </appender>

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

        <root>
                <appender-ref ref="gui" />
        </root>

</log4j:configuration>


Thanks
Benoît
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to