logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: LoggingEvent.fqnOfCategoryClass
Date Wed, 28 Aug 2002 06:41:34 GMT

At 21:28 27.08.2002 -0700, you wrote:
>I am wondering what the logic behind making LoggingEvent.fqnOfCategoryClass
>transient was?
>This is just a String field and when serialized (i.e. transfered over the
>wire) it should cause no issues.  Why not let it be serialized?

Because after serialization that fields is useless. It cannot serve any 
useful purpose.

>The issue I am running into is the fact that I am trying to send a
>LoggingEvent over the wire, but I am loosing this category class field.  I
>tried using the LoggingEvent.getLocationInformation().getClassName() method
>call, however this has what seems to be a bug:  I get the String '?'
>returned when I do this call after the LoggingEvent has been serialized and
>sent over.

Call event.getLocationInformation() before serialization. I hope this helps,

>Rostom Aghanian


To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>

View raw message