Justin,
There's the getLogger() static method on the Log class you could use to
obtain a reference to the RemoteLogger. You wouldn't be using the logger in
quite the intended way, but it should get you want you are looking for.
/**
* @param clazz the class of the desired logger
* @param <T> the desired type of the [EMAIL PROTECTED] Logger}
* @return the desired logger instance or <code>null</code> if no such
longer exists
*/
public static <T extends Logger> T getLogger(Class<T> clazz) {
return impl.getLogger(clazz);
}
HTH
Fred Sauer
[EMAIL PROTECTED]
On Thu, Nov 6, 2008 at 3:00 PM, JT <[EMAIL PROTECTED]> wrote:
>
> Fred,
>
> I was hoping to leave the existing logging the way it was, but now
> only log on the server uncaught exceptions from the client.
>
> I guess another way of saying it is, is it possible to only use the
> Remote Logging when needed. Instead of using Log.debug(msg, t) can we
> use something like new RemoteLogger().debug(msg, t); to send a
> message to the server instead?
>
> Thanks,
>
> Justin.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---