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:

http://logging.apache.org/log4j/2.x/manual/customconfig.html


On 29 August 2014 19:53, Curtis Ruck <[email protected]> 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 <[email protected]>

Reply via email to