logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hansen, Richard" <Richard.Han...@westgroup.com>
Subject RE: Is this possible for remote logging?
Date Thu, 09 Aug 2001 15:22:39 GMT
I don't know what a tibco message looks like or requires, but couldn't you
serialize to a stream then read the stream back as as a string, or char
array, or base 64 encoded or something that you can shove into the tibco
message? At the other end you pull it out from the messsage, stream it out
and then deserialize back into the object.

Rick Hansen

> -----Original Message-----
> From: Timothy Mulle' [mailto:tmulle@iname.com]
> Sent: Thursday, August 09, 2001 10:10 AM
> To: 'LOG4J Users Mailing List'
> Subject: Is this possible for remote logging?
> 
> 
> Hi again,
> 
> 	I'm building a TIBCO appender that will take all the 
> event fields and build
> them into a TibrvMsg (Map). My question is that it doesn't 
> look like I will
> be able to send or at least rebuild ALL the event information from the
> client side on the server side.
> 
> For example, LocationInfo and Throwable information, 
> Date/Time, and NDC
> information. I can get ALL the information and place it into 
> the message to
> be sent, but I have no way of reconstructing the objects on 
> the server side.
> LocationInfo has no public setXX() methods to manually set the fields
> instead of getting them from the Throwable object. The 
> timestamp field in
> the LoggingEvent is private, and can't be set, except when 
> the event is
> created. The same with Throwable, how can I rebuild the 
> information on the
> server side. It would be useful for use to be able to log 
> Throwables from
> the client side since our logging strategy is a centrally located one.
> 
> I can get the NDC info string with NDC.get() and I was thinking on the
> server side I could do NDC.push(data_from_NDC_field) but not 
> sure if that
> will work.
> 
> Any ideas?? We can't use serialization for this appender so I 
> need to use
> all String objects.
> 
> Thanks,
>   - Tim
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message