You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Kevin Steppe <ks...@pacbell.net> on 2002/04/26 07:37:45 UTC
Re: Fwd: DO NOT REPLY [Bug 8529] New: - JDBCAppender doesn't
takethrowable stack trace
This is tougher for the JDBCAppender than others. For file output it is possible
to simply write out a few more lines of text. This doesn't work for a db. The
format is different from the regular messages and so has to be handled
differently. I'll start working/thinking on this, but any ideas or suggestions
would be highly appreciated.
Kevin
Ceki Gülcü wrote:
> FYI.
>
> >Date: 25 Apr 2002 19:58:14 -0000
> >From: bugzilla@apache.org
> >To: ceki@apache.org
> >Cc:
> >Subject: DO NOT REPLY [Bug 8529] New: -
> > JDBCAppender doesn't take throwable stack trace
> >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> >X-Spam-Rating: icarus.apache.org 1.6.2 0/1000/N
> >
> >DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> >RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> ><http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8529>.
> >ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> >INSERTED IN THE BUG DATABASE.
> >
> >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8529
> >
> >JDBCAppender doesn't take throwable stack trace
> >
> > Summary: JDBCAppender doesn't take throwable stack trace
> > Product: Log4j
> > Version: 1.2
> > Platform: Other
> > OS/Version: Other
> > Status: NEW
> > Severity: Normal
> > Priority: Other
> > Component: Appender
> > AssignedTo: ceki@apache.org
> > ReportedBy: mike@javaexpert.org
> >
> >
> >Hi,
> >
> >It appears to me that JDBCAppender is unable to get the actual stack trace
> >of a
> >Throwable object send to the .log() method. The stack trace is appearing for
> >other appenders like FileAppender, but not for JDBCAppender.
> >
> >Thanks,
> >Mike Liu
>
> --
> Ceki
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Fwd: DO NOT REPLY [Bug 8529] New: - JDBCAppender doesn't
takethrowable stack trace
Posted by Ceki Gülcü <ce...@qos.ch>.
Kevin,
One possibility is to have a second sqlStatement specifically
for exceptions (or throwables) and to format the throwable in the
following manner:
String[] s = event.getThrowableStrRep();
if(s != null) {
StringBuffer buf = new StringBuffer();
for(int i = 0; i < s.length; i++) {
buf.append(s[i]);
buf.append("\r\n");
}
}
// now write to database using the SQL statement
// for throwables and buf variable.
Just a thought...
At 22:37 25.04.2002 -0700, Kevin Steppe wrote:
>This is tougher for the JDBCAppender than others. For file output it is
>possible
>to simply write out a few more lines of text. This doesn't work for a
>db. The
>format is different from the regular messages and so has to be handled
>differently. I'll start working/thinking on this, but any ideas or
>suggestions
>would be highly appreciated.
>
>Kevin
>
>
>Ceki Gülcü wrote:
>
> > FYI.
> >
> > >Date: 25 Apr 2002 19:58:14 -0000
> > >From: bugzilla@apache.org
> > >To: ceki@apache.org
> > >Cc:
> > >Subject: DO NOT REPLY [Bug 8529] New: -
> > > JDBCAppender doesn't take throwable stack trace
> > >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> > >X-Spam-Rating: icarus.apache.org 1.6.2 0/1000/N
> > >
> > >DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> > >RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> > ><http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8529>.
> > >ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> > >INSERTED IN THE BUG DATABASE.
> > >
> > >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8529
> > >
> > >JDBCAppender doesn't take throwable stack trace
> > >
> > > Summary: JDBCAppender doesn't take throwable stack trace
> > > Product: Log4j
> > > Version: 1.2
> > > Platform: Other
> > > OS/Version: Other
> > > Status: NEW
> > > Severity: Normal
> > > Priority: Other
> > > Component: Appender
> > > AssignedTo: ceki@apache.org
> > > ReportedBy: mike@javaexpert.org
> > >
> > >
> > >Hi,
> > >
> > >It appears to me that JDBCAppender is unable to get the actual stack trace
> > >of a
> > >Throwable object send to the .log() method. The stack trace is
> appearing for
> > >other appenders like FileAppender, but not for JDBCAppender.
> > >
> > >Thanks,
> > >Mike Liu
> >
> > --
> > Ceki
--
Ceki
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>