First, I'd like to say nice job and *thanks* to Allen for making this
library available!

Second, here's our situation, I've setup gwt-log with remote logging
as follows in our GWT application:

Application.gwt.xml

...
...
        <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
        <set-property name="log_RemoteLogger" value="ENABLED" />
        <set-property name="log_DivLogger" value="DISABLED" />
        <set-configuration-property name="log_pattern" value="%d [%t] %p - %m
%n" />
...
...

web.xml
...
...
        <servlet>
                <servlet-name>gwt-log-remote-logger-servlet</servlet-name>
                <servlet-
class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-
class>
        </servlet>

        <servlet-mapping>
                <servlet-name>gwt-log-remote-logger-servlet</servlet-name>
                
<url-pattern>/com.hp.ipg.vca.gdt.wizard.Application/gwt-log</url-
pattern>
        </servlet-mapping>
...
...


log4j.xml
...
...
        <appender name="ConsoleAppender"
class="org.apache.log4j.ConsoleAppender">
                <layout class="org.apache.log4j.SimpleLayout" />
        </appender>

        <appender name="FileAppender" class="org.apache.log4j.FileAppender">
                <param name="File" value="${logs.dir}/gdt-wizard.log" />
                <param name="Append" value="false" />
                <layout class="org.apache.log4j.PatternLayout">
                        <param name="ConversionPattern" value="%d [%t] %p - 
%m%n" />
                </layout>
        </appender>

        <appender name="GDTFileAppender"
class="org.apache.log4j.RollingFileAppender">
                <param name="maxFileSize" value="100KB" />
                <param name="maxBackupIndex" value="5" />
                <param name="File" value="${logs.dir}/gdt-wizard-rolling.log" />
                <param name="threshold" value="info" />
                <layout class="org.apache.log4j.PatternLayout">
                <param name="ConversionPattern" value="%d{ABSOLUTE} %5p
%c{1}:%L - %m%n" />
                </layout>
        </appender>

        <root>
                <priority value="info" />
                <appender-ref ref="ConsoleAppender" />
                <appender-ref ref="GDTFileAppender" />
                <appender-ref ref="FileAppender" />
        </root>
...
...

In our GWT Application.java (the class that implements the GWT
EntryPoint interface) we've setup the '
Log.setUncaughtExceptionHandler();' we output the sample test messages
as illustrated in the getting started guide.

...
...
        Log.debug("This is a 'DEBUG' test message");
        Log.info("This is a 'INFO' test message");
        Log.warn("This is a 'WARN' test message");
        Log.error("This is a 'ERROR' test message");
        Log.fatal("This is a 'FATAL' test message");
...
...

In the GWT Development console we see the full compliment of these
messages displayed as expected, however, on the *server-side* of the
equation our logs display ALL but the "This is a 'DEBUG' test
message".

So it would appear as though the DEBUG messages are being captured and
routed to the server via the GWT-LOG Remote Logging facilities,
however, it appears they are being stripped.

Any thoughts?

Thanks in advance for any tips or pointers.





-- 
You received this message because you are subscribed to the Google Groups 
"gwt-log" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gwt-log?hl=en.

Reply via email to