This is production mode, release 3.0.1. (By the way, I really like
the library... I find it incredibly useful and usable....thanks very
much for developing, putting it out there, and supporting it.)
Just looking at the code, it seems that, in
com.allen_sauer.gwt.log.server.ServerLogImplLog4J, there is no use of
the exception which is on the on the LogRecord. It just sends through
the message:
public void log(LogRecord record) {
Set<Entry<String, String>> set = record.getMapEntrySet();
for (Entry<String, String> entry : set) {
MDC.put(entry.getKey(), entry.getValue());
}
logger.log(Level.toLevel(mapGWTLogLevelToImplLevel(record.getLevel())),
record.getMessage());
for (Entry<String, String> entry : set) {
MDC.remove(entry.getKey());
}
}
Thanks,
Eric
On Jul 16, 3:03 pm, Fred Sauer <[email protected]> wrote:
> That's not expected.
>
> What's the version of gwt-log you are using?
>
> Is this development mode or production mode?
>
>
>
>
>
> On Fri, Jul 16, 2010 at 9:53 AM, EricB. <[email protected]> wrote:
> > Here's what's in my GWT Code:
> > Log.error("Log error", new NullPointerException("Test NPE"));
>
> > Here's what's in server log:
> > 2010-07-16 09:49:48,934 ERROR [gwt-log](http-0.0.0.0-8001-4) Log error
>
> > There entry in the server log doesn't mention anything about the
> > exception that was thrown nor anything about the stack in which it was
> > thrown. Is that as expected?
>
> > Thanks,
>
> > Eric
>
> > --
> > 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]<gwt-log%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/gwt-log?hl=en.
>
> --
> Fred Sauer
> Developer Advocate
> Google Inc.
> 1600 Amphitheatre Parkway
> Mountain View, CA 94043
> [email protected] Hide quoted text -
>
> - Show quoted text -
--
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.