| 1.  Is there a way to monitor the queue of the async appender ?

Not without modifying the code.

| 2. If an Async appender is writting to a socket appender and if there is a
| network issue and the queue gets full, is there a way to
| overwirte the queue
| rather than block the user (not acceptable).

Not without modifying the code.

| Can the queue be
| circular ?

You will (probably) have to write the queue and the functionality yourself
(it's not very hard). Doug Lea has written an excellent package for
asynchronous data structures and concepts that you can use as a
startingpoing, see
http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.h
tml.

| we
| would prefer losing the log messages to blocking a user.
| 3. If multiple servers are sending log messages to a socket on a
| server, can
| the messages get corrupted ?

Not if the log server can handle multiple clients. See SimpleSocketServer
which is shipped with Log4j.

| I am hoping to achieve the ability to write to a central log from multiple
| servers by using asyn appenders writting to Socket appender. Does
| anyone see
| any issues in this approach ?

No. We did that for quite a long time last year, and it worked fine. I think
Log4j is going to have a more flexible backup appender concept in a future
release, not sure in which or when.

--

Thomas





*************************************************************************
Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. 
The information supplied in this Commercial Communication should be treated
in confidence.
No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

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

Reply via email to