The JMX GUI <https://logging.apache.org/log4j/2.x/manual/jmx.html> provides a way to edit your configuration file which is the standard way to change those settings. Without using the GUI, this is all done from the LoggerContextAdminMBean if you need to do it remotely. Otherwise, there are other ways to reconfigure at runtime such as setting the monitorInterval property on the configuration to a certain number of seconds which is used to periodically check if the configuration file has changed and to reload it if so.
On 14 March 2017 at 10:04, Marasoiu Nicolae <nicolae.maras...@cegeka.com> wrote: > Hi, > > > I wonder if it is possible to add Loggers or Appenders at runtime, or > change / interpose nodes in the tree of loggers, or the tree of appenders, > in a structural way at runtime, via JMX or other means. > > > A practical example is a component which is too verbose, and it is > component (a package prefix) that you did not consider until now. Can one > create this new Logger, in order to change its Level? > > > Thank you, > > > Met vriendelijke groeten / Meilleures salutations / Best regards > > > Nicolae Marasoiu > Agile Developer > > [http://signature.cegeka.com/2016/stripe-small.jpg] > > > E nicolae.maras...@cegeka.com<mailto:nicolae.maras...@cegeka.com> > > > [http://signature.cegeka.com/2016/stripe-large.jpg] > > > [http://signature.cegeka.com/2016/logo.jpg] CEGEKA 15-17 Ion > Mihalache Blvd. Tower Center Building, 4th,5th,6th,8th,9th fl > RO-011171 Bucharest (RO), Romania > T +40 21 336 20 65 > WWW.CEGEKA.COM<http://www.cegeka.com> [LinkedIn] < > https://www.linkedin.com/company/cegeka-romania> > > > -- Matt Sicker <boa...@gmail.com>