How do you shut the Logger's mouth? (mute) :D

Hi, I already tried this:

Logger.getLogger(“com.jme3”).setLevel(Level.SEVERE);

…which mutes the INFO messages for /most/ cases, but not all. How do you tell the Logger to completely shut its mouth? Like is there a GLOBAL setLevel method or something?

Thx >.<

Well, I found that not putting anything as the getLogger() parameter shuts the whole logging feature’s mouth globally. I simply did this:

Logger.getLogger("").setLevel(Level.SEVERE);

Thx, case closed.

I’m glad you figured that out.

By the way, this technique is described in the FAQ, which we all should review from time to time.

1 Like

Yes, absolutely. But you know, forums like this one are indexed by Google every day or so and that enables users to search them afterwards, so I figure that this also serves as a FAQ on its own haha… but yes, I should have read the FAQ, it’s just that it’s a long way to read all of this when you have a very specific question. Thx for stopping by my post Stephen tough haha :stuck_out_tongue:

@.Ben. said: Yes, absolutely. But you know, forums like this one are indexed by Google every day or so and that enables users to search them afterwards, so I figure that this also serves as a FAQ on its own haha... but yes, I should have read the FAQ, it's just that it's a long way to read all of this when you have a very specific question. Thx for stopping by my post Stephen tough haha :P

Google indexes the wiki, too:
https://www.google.com/search?q=site%3Ajmonkeyengine.org+logger+output
…has the FAQ in the fourth hit or so… but this search:
https://www.google.com/search?q=site%3Ajmonkeyengine.org+logger+setLevel
…which is perhaps more logical will find an actual article as the first hit.

Questions are fine but they should not be an excuse to get a topic “indexed”. Especially when it already shows up in 20 other topics already. :wink:

1 Like