logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: dynamic appender registration
Date Sat, 30 Aug 2014 01:49:10 GMT
The dynamic way to go about doing that would be to update the configuration
and do a reconfigure. The basic way this is done is through polling the
config file, but the same concept can be extended in a more programmatic
fashion by taking a look at ConfigurationFactory customization:


On 29 August 2014 19:53, Curtis Ruck <ruckc@yahoo.com.invalid> wrote:

> I'm looking at integrating Log4j2 into a complex desktop application,
> because of it's async logging implementation.  The problem I'm running into
> is that I'd like to dynamically register/unregister an appender on the root
> logger (or any user specified logger).  The problem though is that I can't
> find any API (in core or otherwise) that would actually allow this.
> --
> Curtis

Matt Sicker <boards@gmail.com>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message