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

Reply via email to