The example I have is that we are logging events to an MQ queue and then
pulling them off the other end and using Logkit to log to the required
destination.

We are putting a LogEvent onto the queue which comes out as an object which
is then cast back to the appropriate class (LogEvent). Unfortunately,
cannot do log(LogEvent) so have to set each of the available properties but
cannot get access to time!

I will have a look at the "filter" target and see whether this presents a
solution.





Peter Donald <[EMAIL PROTECTED]> on 22/03/2002 09:09:25

Please respond to "Avalon Developers List" <[EMAIL PROTECTED]>

To:    "Avalon Developers List" <[EMAIL PROTECTED]>
cc:

Subject:    Re: Logkit: org.apache.log.Logger.output(LogEvent)

On Wed, 20 Mar 2002 17:58, [EMAIL PROTECTED] wrote:
> This method is private however I would like to set the value of time in
> LogEvent to something other than the currentTimeInMillis().

Can you give me an example?

In most cases I would recomend that you instead wrote a "filter" Target
that
modified time to the value you want it to be and then passed it onto next
target in chain (ie the real target).









****************************************************************
NOTICE - This message is intended only for the use of the 
addressee named above and may contain privileged and 
confidential information.  If you are not the intended recipient
of this message you are hereby notified that you must not 
disseminate, copy or take any action based upon it.  If you 
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.
****************************************************************

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

Reply via email to