print to console

#1

Hi,

I have created a new project with the same code of the old join node. The execution of this node run properly.

Now inside the execute method of the node model i use:

NodeLogger LOGGER = NodeLogger.getLogger(Joiner2NodeModel.class);

LOGGER.error("test");

System.out.println("test2");

but i can't see anything into the console. Am i wrong?

Thanks

 

0 Likes

#2

Logger output does end up in KNIME's console (not necessarily the Eclipse console). Output to System.out/err only ends up in the application's console window in the Eclipse SDK.

0 Likes

#3

Hi,
I got another question about the console print. I have logger information displayed in the Eclipse, but I want to depress the print in Eclipse. I tried to change it in Eclipse by unchecking the Show when program writes to standard out. However, it doesn’t work. So I wonder if there is a way in KNIME setting to avoid the print in Eclipse console?

Regards
Kefang

0 Likes