Disable INFO output

I really don’t care about messages like these:

3-mei-2011 15:09:59 com.jme3.scene.Node attachChild

INFO: Child (baseObject) attached to this node (Root Node)

well actually except exceptions and print’s there isn’t any output that I’d consider valuable. Is there any way to filter all these useless messages?

1 Like

This is not useless, it is…info.

It’s the engine trying to connect with you, and be your friend!! :stuck_out_tongue:

You can set the logger on SEVERE level.

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

And only errors will be displayed in the output.

1 Like

Sorry engine 8O but just like my girlfriend you talk too much :smiley:

No but I instance quite some objects and to find my prints between all those messages is getting quite annoying, anyway thanks. Also I just noted you can set the ‘verbosity’ level in the IDE, is this the same thing?

mhhh don’t know, try it :stuck_out_tongue:

Doesn’t seem to do anything, ahwell your suggestion worked perfectly anyway.

Thanks alot :slight_smile:

how can u disable the nifty data? (u know… INFO: Nifty Data : then ide writes the whole xml file … )


that didnt do much…



try setting level to SEVERE, so you’ll get nifty exceptions but no INFO prints… :slight_smile:

hmmm … doesnt work …

[java]public static void main(String[] args) {



Game app = new Game();




dunno what i did wrong but the nifty info data still appears …

remarkable : only de.lessvoid stuff appears… so for “com.jme3” it does the trick…

any clue?

greetings Terry

I just tried it, and it’s strange but you’re right. I tried with a few possibilities to turn it off, but nifty INFO is always present. Does anyone else have any clue on this?

hmm then try


though i think this applies to everything

1 Like

I use this :

[java]Logger.getLogger( “” ).setLevel( Level.WARNING );[/java]

But there are a few

[java]System.out.println(" […] ")[/java]

in the code. The logger won’t stop those.

I think you will have to find and remove those system.out yourself.

also are there any ways to make logger print other color than red ?

sometimes I used system.out and system.error together for 2 different things and with color it is easier to find the bug. I wonder if logger can do something like that.

In Eclipse, I have been looking for a colored logging console for years … without success :frowning:

Not sure about Netbeans.

I saw there are something similar, but I dont know if we can use it

hmm then try
though i think this applies to everything

well it works.... there i didnt saw the wood for the tree :) thx

I have another solution … use slf4j with the log4j-bridge and the jul-bridge


public class Main {

private static final Logger LOG = LoggerFactory.getLogger(Main.class);

static {

// JME uses java.util.logging - bridge to slf4 - see Log4j Bridge

final java.util.logging.Logger rootLogger = LogManager.getLogManager().getLogger("");

final Handler[] handlers = rootLogger.getHandlers();

for (int i = 0; i < handlers.length; i++) {





public static void main(final String[] args) {

LOG.info("Hello World");

// here you can start your engine …





<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

<appender name="console" class="org.apache.log4j.ConsoleAppender">

<layout class="org.apache.log4j.PatternLayout">

<param name="ConversionPattern" value="%d{HH:mm:ss} %-5p - %c:%L - %m%n" />



<category name="com.jme3">

<priority value="error" />



<priority value="error" />

<appender-ref ref="console" />




Here are the maven dependencies …





















1 Like

Nono, we really gotta get this niftygui log mess under control ^^ All jme3 console output can be disabled by just doing Logger.getLogger(“com.jme3”).setLevel(Level.OFF); so that should be possible with nifty too. Generally the “INFO” level is the level that you are not supposed to turn off so arguably jme3 and especially nifty use it too much. For release much of the INFO level log will probably moved to FINE and FINER.

1 Like