Hi,
I have the following entry in my Application.gwt.xml file:
<inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
<set-configuration-property name="log_pattern" value="%d [%-5p] %C %m
%n" />
<!-- Turn on the `RemoteLogger` -->
<set-property name="log_RemoteLogger" value="ENABLED" />
<!-- Turn off the divLogger -->
<set-property name="log_DivLogger" value="DISABLED" />
And here is my log4j.xml file on the server side:
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} -
%m%n" />
</layout>
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<param name="levelMin" value="DEBUG" />
<param name="levelMax" value="ERROR" />
</filter>
</appender>
<logger name="gwt-log" additivity="false">
<level value="debug" />
<appender-ref ref="console" />
</logger>
<root>
<priority value="debug" />
<appender-ref ref="console" />
</root>
I used the gwt-log in my client side code:
Log.debug("on records.... " + jsonString);
And I got two lines of output. I guess one is from the client side
Application.gwt.xml and one is from the server side log4j.xml:
[INFO] 2010-07-08 15:18:09,448 [DEBUG] - on records.... ["/permanent/
0003001243/ths:document/547f9b1b_d6f3_4be9_8b91_1549ad77c175/ths:page/
75d3b482_2ee4_412f_b528_2591f3cc7e07"]
[INFO] DEBUG gwt-log - [127.0.0.1] 2010-07-08 15:18:09,448 [DEBUG] -
on records.... ["/permanent/0003001243/ths:document/
547f9b1b_d6f3_4be9_8b91_1549ad77c175/ths:page/
75d3b482_2ee4_412f_b528_2591f3cc7e07"]
But as you can see, neither of them has the class name.
Thanks a lot!
--
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.