Logger Issues

I’m messing around with the tutorial for Nifty and the Nifty Gui Demo project.

I want to turn off those annoying logger messages so I can see my printouts (Or lack thereof, I am having another issue that I’m trying to debug) but it’s not turning off when I use
Logger.getLogger(“de.lessvoid.nifty”).setLevel(Level.SEVERE);
Logger.getLogger(“NiftyInputEventHandlingLog”).setLevel(Level.SEVERE);

Here’s the whole simpleInitApp()
[java]@Override
public void simpleInitApp() {
setDisplayFps(false);
setDisplayStatView(false);

/**
 * Just some simple JME content to show it's really a JME app:
 */
Box b = new Box(Vector3f.ZERO, 1, 1, 1);
Geometry geom = new Geometry("Box", b);
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
mat.setColor("Color", ColorRGBA.Blue);
geom.setMaterial(mat);
rootNode.attachChild(geom);

startScreen = new MyStartScreen();
stateManager.attach(startScreen);

/**
 * Åctivate the Nifty-JME integration: 
 */
NiftyJmeDisplay niftyDisplay = new NiftyJmeDisplay(
        assetManager, inputManager, audioRenderer, guiViewPort);
Nifty nifty = niftyDisplay.getNifty();
guiViewPort.addProcessor(niftyDisplay);
nifty.fromXml("Interface/tutorial/screen3.xml", "start", startScreen);
//nifty.setDebugOptionPanelColors(true);

flyCam.setDragToRotate(true); // you need the mouse for clicking now
Logger.getLogger("de.lessvoid.nifty").setLevel(Level.SEVERE); 
Logger.getLogger("NiftyInputEventHandlingLog").setLevel(Level.SEVERE);

}[/java]

Is there some other place I need to be doing it? Because the tutorial just says put them after you add nifty, which it seems has been done by that point?

Have you tried removing all the loggers you don"t use ?
Just have [java] Logger.getLogger("").setLevel(Level.NONE); [/java].

On the other hand “NiftyInputEventHandlingLog” does not seem to be a fully qualified name. It should be “NiftyInputEventHandlingLog.class.getName()”.

@yang71 said: Have you tried removing all the loggers you don"t use ? Just have [java] Logger.getLogger("").setLevel(Level.NONE); [/java].

On the other hand “NiftyInputEventHandlingLog” does not seem to be a fully qualified name. It should be “NiftyInputEventHandlingLog.class.getName()”.

I just did what it says to do in the docs.
.NONE isn’t an option.
I’ve tried .OFF, it didn’t help and the things it is currently posting are definitely not SEVERE.

I tried both of the things you suggested. Neither worked.

Sorry for the mistake in the constant. :frowning:
No idea on why nifty posts non severe logs as if they were…