logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elias Ross <er...@m-qube.com>
Subject Re: Sequence count, WAS: Why concurrency?
Date Mon, 31 Jan 2005 23:19:09 GMT
On Mon, 2005-01-31 at 14:53, Curt Arnold wrote:

> So I think that users 
> will just have to accept that messages in the log from a multithreaded 
> application may appear in a slightly different sequence than the 
> requests were made.

Which is sort of the reasoning behind having the appender generate the
sequence number -- not the class itself.  Then, you be sure that events
appearing in a file would appear in the correct order.  This would be
part of the contract for Appender.doAppend.

For appenders that don't have any reason to generate the sequence number
(WriterAppender, et all.) you don't generate one.  ChainsawAppender and
SocketAppender would create one.

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

View raw message