What's the right way to use NodeLogger?

#1

config log level in knime-Runtime E:\runtime-KNIME.metadata\knime

<logger name="com.gw">
    <level value="all" />
</logger>

in the Knime console or Eclipse console did not see any log What’s the right way use Nodelogger?

0 Likes

#2

Hi @lou,

can you make sure your target platform contains the 4.0.1 bundles? There was a regression in KNIME 4.0 that swallowed log messages from third party plugins.

To use NodeLogger you just need to get the instance for your class:

Then call the log methods on it. You might need to set the appropriate log level in the KNIME AP preferences to show all message types:

knime-setting

best,
Gabriel

0 Likes

#3

target version 4.0

0 Likes

#4

Selection_041
Can you let it resolve and then confirm that your version of KNIME Core is also 4.0.1?

0 Likes

#5

yes

0 Likes

#6

I want to see the log in Eclipse(not Knime) console output with the following setting

<logger name="com.gw">
        <level value="all" />
        <appender-ref ref="stdout" />
        <appender-ref ref="stderr" />
        <appender-ref ref="knimeConsole" />
    </logger>

com.gw is my package prefix,It’s correct? but i just see log in runtime-KNIME.metadata\knime\knime.log there is no log in Eclipse console.

any suggestion? thanks

0 Likes