1

Is there a way in Java AppEngine to list all the active Loggers?

I'd like to create a JSP to batch edit the log levels of all current loggers, without deploying any files.

The problem is that LogManager class is not supported in GAE, so all these examples are not useful

Any ideas?

Community
  • 1
  • 1
Deviling Master
  • 3,033
  • 5
  • 34
  • 59
  • Good question. I'd like to find the system logger in dev console and change its handlers so it doesn't print everything in red! – Tom Mar 15 '14 at 18:27
  • Turns out that the system logger on dev console is name "" (empty string). So it can be changed with Logger.getLogger("") and then removing its handlers and adding your own. – Tom Mar 15 '14 at 18:35
  • It is interesting that java.util.logging.LoggingMXBean is listed in the [JRE class whitelist](https://cloud.google.com/appengine/docs/java/jrewhitelist) but there is no way to gain a reference to an object that implements that interface. LogManger and java.lang.management are blocked. – jmehrens Jul 17 '15 at 20:15

0 Answers0