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 18:42:55 GMT
OK, thanks

Paul Duffy wrote:
> Thanks Scott,
>
> How about just a simple monotonically increasing sequence number in 
> the LoggingEvent?  Placed there by the ctor when the time stamp is set?
>
> Cheers
>
>
> Scott Deboy wrote:
>> The process for actually getting a receivers companion is VERY
>> complicated (based on maven, has dependencies on snapshots and external
>> dependencies which can't be stored in the standard maven repositories).
>>
>> If you want to go down the path:
>>
>>  - Install maven
>>  - Check out the receivers source from the subversion repo
>>  - Run mvn install and work through the dependencies
>>
>> svn repo for receivers is at:
>>
>> http://svn.apache.org/repos/asf/logging/log4j/companions/receivers/trunk
>>
>> Sorry it's so difficult..hopefully we'll release the companions shortly.
>>
>>  
>> Scott Deboy
>> Principal Engineer
>> COMOTIV SYSTEMS
>> 111 SW Columbia Street Ste. 950
>> Portland, OR  97201
>> Office: 503.224.7496
>> Direct Line: 503.821.6482
>> Cell: 503.997.1367
>> Fax: 503.222.0185
>> sdeboy@comotivsystems.com
>> www.comotivsystems.com
>>
>>
>> -----Original Message-----
>> From: Paul Duffy [mailto:paduffy@cisco.com] Sent: Thursday, December 
>> 06, 2007 2:38 PM
>> To: Log4J Users List
>> Subject: Re: Sequence numbers for LoggingEvents
>>
>> 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/sr
>> c/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
>

---------------------------------------------------------------------
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