It depends on what you mean...

You have programmatic access to the Log4j structures, so you can
programticly add/modify/remove categories and the like.  For example
(psuedo-code):

  if (debugBtnPressed) {
    Category.getRoot().setPriority(Priority.DEBUG);
  }
  else if (noDebugBtnPressed) {
    Category.getRoot().setPriority(Priority.INFO);
  }

If you mean reconfiguring from a SIGHUP, JMX, etc. then that is (currently)
not supported.

-Jim Moore

-----Original Message-----
From: Gogia, Nitin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 9:09 AM
To: LOG4J Users Mailing List
Subject: Disable/Enable Logging



Hi,
I wud like to know if the user can enable/disable logging at runtime.

Regards,
Nitin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to