logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Duffy <padu...@cisco.com>
Subject Re: Sequence numbers for LoggingEvents
Date Fri, 07 Dec 2007 15:19:42 GMT
BTW folks,  The lack of a sequence numbers in the LoggingEvent.  We see 
this as an increasingly important issue in todays world of highly 
concurrent HW and ever increasing clock rates.  There are A LOT of 
milliseconds (Log4Js time resolution) in a nanosecond.

Cheers


Paul Duffy wrote:
> Thanks Scott,
>
> We're using 1.2.13 and hoping to solve the sequence number issues with 
> a currently available extension mechanisms.
>
> Couple Qs...
>
> 1. The receivers package does not seem to be released yet? We can't 
> find the downloads. 
> http://logging.apache.org/log4j/companions/receivers/download.html
>
> 2. From an example we found, it seems that you need to add 
> RewriteAppender to each logger?  Is there sample code somewhere we 
> might examine?
>
> Cheers
>
>
> Scott Deboy wrote:
>> If I recall there was a sequence number added to loggingevent in the 
>> 1.3 codebase, but that was taken out a while ago.
>>
>> You can modify logging events before they're processed by appenders 
>> by using the org.apache.log4j.rewrite package in the 'receivers' 
>> companion.
>>
>> Create your own rewritepolicy implementation which adds a sequence 
>> number property to each loggingevent, and then specify a 
>> rewriteappender which references your rewritepolicy implementation 
>> and delegates to a regular appender.
>>
>> http://logging.apache.org/log4j/companions/receivers/apidocs/index.html
>>
>> http://svn.apache.org/viewvc/logging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/rewrite/

>>
>>
>>
>>
>>
>> Scott Deboy
>> COMOTIV SYSTEMS
>> 111 SW Columbia Street Ste. 950
>> Portland, OR  97201
>>
>> Telephone:      503.224.7496
>> Cell:           503.997.1367
>> Fax:            503.222.0185
>>
>> sdeboy@comotivsystems.com
>>
>> www.comotivsystems.com
>>
>>
>>
>> -----Original Message-----
>> From: Paul Duffy [mailto:paduffy@cisco.com]
>> Sent: Wed 12/5/2007 7:29 PM
>> To: Log4J Users List
>> Subject: Sequence numbers for LoggingEvents
>>  
>> Folks,
>>
>> I have an application that is likely to produce LoggingEvents on 
>> identical millisecond epochs.  Thus I also need a sequence number to 
>> unambiguously determine event order.
>> Is there any facility by which I can also include a montonically 
>> increasing sequence number in the event?  I went back through the 
>> archives...seems some work was started here for 1.3, but was stopped?
>>
>> Cheers
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>>
>>   
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>

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


Mime
View raw message