In the LoggEvent class, there are two methods, one is getRenderedMessage(),
another is getThrowableInformation(). My understand is  that
getRenderedMessage() return log message and getThrowableInformation()
returns stack trace.

My understand is that based on my pattern, there is a '%.300m' in there
which returns message only, so there is no stack trace available in this
case. Is this the case? If not, how is the throwableInformation included in
the output message?

Also there is a private method writeObject() which writes the
throwableInformation into output stream, I don't see it called anywhere in
the class. How does it work?

Thanks.

Song

Here is my sql pattern.

<param name="sql"
        value="insert into eventLogEvents (
                                            eventType,
                                            eventMachine,
                                            eventTime,
                                            eventID,
                                            eventLevel,
                                            eventCategory,
                                            componentName,
                                            eventClassID,
                                            eventClassDescription,
                                            eventDetails
                                           )
                                    values (
                                            %p,
                                            #TOKEN_EVENT_MACHINE_NAME#,
                                            #%d{MM/dd/yyyy HH:mm:ss}#,
                                            #%c#,
                                            3,
                                            9,
                                            #Secure Message Redirect#,
                                            16000,
                                            #[%c]#,
                                            #[%c{1}] %.300m#
                                            )

    "/>

Thanks a lot.

Song

"struts" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am also getting the similiar problem. Just I was able to see the stack
> trace in the console, but in the database, I can just see the error
message
> without stack trace. Attached is my log4j.xml file. Anybody knows why?
>
> Thanks.
>
> Song
>
> "Robert Augustyn" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Paul,
> > Thanks, I am running 1.4.2 vm and it does not look
> > like it's fixed...
> > It is real pain!.
> > robert
> >
> > -----Original Message-----
> > From: Paul Smith [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, November 27, 2003 7:02 PM
> > To: Log4J Users List
> > Subject: RE: I am not getting stack trace from
> > logger.error("error",e)?
> >
> >
> > On Fri, 2003-11-28 at 10:45, Robert Augustyn wrote:
> >
> > > Hi Ceki,
> >
> > > I am getting just one line like:
> >
> > > Java.NullPointerException:
> >
> >
> >
> > This maybe only a very slight possibility, but I have
> > seen exactly what
> >
> > you are describing in our production environment when
> > we are using the
> >
> > -server option under the Sun 1.4.2 JDK under Linux (no
> > JBoss though).
> >
> > Just a single line with no more information.
> >
> >
> >
> > See this bug:
> >
> > http://developer.java.sun.com/developer/bugParade/bugs/4761344.html
> >
> >
> >
> > They say it is fixed in 1.4.2, and while it does not
> > happen with the
> >
> > frequency it used to, it's one to look out for.  Not
> > using the -server
> >
> > option seems to help, although you lose some
> > performance there.
> >
> >
> >
> > cheers,
> >
> >
> >
> > Paul Smith
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> >
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> >
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Free Pop-Up Blocker - Get it now
> > http://companion.yahoo.com/
>
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to