Hi Adam, If you're at all interested, I've put together a non-blocking alternative to the Loj4J AsyncAppender. This code has been contributed to the Log4J project, though it hasn't been picked up since it has external dependencies. Details at http://www.simonsite.org.uk/.
Simon ----- Original Message ---- From: Adam Mitchell <[EMAIL PROTECTED]> To: Log4J Users List <[email protected]> Sent: Thursday, 26 June, 2008 10:12:06 PM Subject: Re: AsyncAppender "blocking" property Thanks, Scott. Matthew - setting the blocking property to false should allow me to use a SocketAppender (chained from AsyncAppender), whether or not the destination host is up. Without setting blocking to false my application threads will block on logger calls when my SocketAppender can't talk to my log server. Thanks for the responses! Adam On Thu, Jun 26, 2008 at 4:42 PM, Scott Deboy <[EMAIL PROTECTED]> wrote: > It's available with log4j 1.2.15: > > http://logging.apache.org/log4j/1.2/apidocs/index.html?org/apache/log4j/ > AsyncAppender.html<http://logging.apache.org/log4j/1.2/apidocs/index.html?org/apache/log4j/AsyncAppender.html> > > Scott > > > -----Original Message----- > From: Matthew Kemp [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2008 1:39 PM > To: Log4J Users List; [EMAIL PROTECTED] > Subject: Re: AsyncAppender "blocking" property > > There's no property on the AsyncAppender that I know of called > 'blocking'. > What are yout trying to accomplish with this property? > > > On Thu, Jun 26, 2008 at 3:32 PM, Adam Mitchell <[EMAIL PROTECTED]> > wrote: > > > I'm trying to disable blocking in the AsyncAppender, but get this > message > > on > > init: > > > > log4j:WARN No such property [blocking] in > org.apache.log4j.AsyncAppender. > > > > Can the blocking property be configured from log4j.xml? Here's my > relevant > > config: > > > > <appender name="ASYNC" class="org.apache.log4j.AsyncAppender"> > > <param name="Blocking" value="false"/> > > <appender-ref ref="ILM"/> > > </appender> > > > > I've tried "Blocking" and "blocking" with the same results. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
