JMX You can control logging output using JMX and some flags. This is a simple solution that does not involve external feature toggles or databases. You can use JMC and go to the MBean Server to turn on and off logging.