Stephen,

What version of GWT and gwt-log are you using?

Thanks
Fred

On Fri, Jan 23, 2009 at 8:26 AM, Steve <[email protected]> wrote:
>
> When i log an error it appears twice in the server. this is my code:
>
>
> public void onModuleLoad() {
>    // setup logging
>    final Logger logger = new RemoteLogger();  // logs to stderr on
> server
>    Log.addLogger(logger);
>    Log.setUncaughtExceptionHandler();
>
>    // this ensures All errors and exceptions are logged
>    DeferredCommand.addCommand(new Command() {
>      public void execute() {
>        onModuleLoadDeffered();
>      }
>    });
>  }
>
>  /**
>   * Loads the app.
>   */
>  private void onModuleLoadDeffered() {
>
>    Log.error("one");
>    Log.error("two");
>    Log.error("three");
>  }
>
>  my .gwt.xml file contains:
>
>  <inherits name='com.allen_sauer.gwt.log.gwt-log-DEBUG'/>   <!-- sets
> log level for entire project -->
>
>  <!-- Turn on `RemoteLogger` -->
>  <set-property name="log_RemoteLogger" value="ENABLED" />
>  <!-- Turn off `DivLogger` -->
>  <set-property name="log_DivLogger" value="DISABLED" />
>
>
>
> And i get this output on the server:
>
> one
> one
> two
> two
> three
> three
>
>
> Anyone have any idea why? am i doing something stupid?
>
> Thanks in advance,
> Stephen
>
>
> >
>



-- 
Fred Sauer
[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