On Mon, Nov 2, 2009 at 9:37 AM, John <[email protected]> wrote:

>
> Hi,
>
> I am using remote logger with log4j. I have a log4j properties set up
> in a log4j.properties and while that seems to be working fine for
> messages I send straight to log4j the gwt-log messages produced in the
> server do not seem to have the same format or to be obaying the rules
> for what level of messages get printed out. e.g. here are two
> consequtive lines from the console, the first generated with a Log4j
> Logger the second using Log.debug() from gwt-log
>
> 02/11/2009 17:30:06 DEBUG [JavaSpaceClientAccessManager Update Read/
> Dispatch Thread] (ServerLogImplLog4J.java:43) - Adding 1 to
> HTTPSession k8dnl9klztex length is 2
> 2009-11-02 17:30:06,323 [INFO ] Have received updates that need
> dispatching, updates size is 1
>
> I have log4j.properties set up to log at INFO level and the layout is
>
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%d{dd/MM/yyyy HH:mm:ss} %5p
> [%t]  (%F:%L) - %m%n
>
> So I have two questions.
> 1. How do you configure the log4j output of the remote logger?
>
http://code.google.com/p/gwt-log/wiki/GettingStarted
 specifically this sections:

  <!--
    Inspired by Apache log4j PatternLayout:
    
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html

  -->

  <set-configuration-property name="log_pattern" value="%d [%-5p] %m%n" />



> 2. Is gwt-log designed to allow use of the Log.xxx methods server
> side.
>
>
Yes :)




> Thanks,
>
> J
>
>
> >
>


-- 
Fred Sauer
Developer Advocate
Google Inc.1600 Amphitheatre Parkway
Mountain View, CA 94043
[email protected]

--~--~---------~--~----~------------~-------~--~----~
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