Minimal root log level in log4j3.xml overrides level set in preferences of KNIME AP
I noticed that INFO-level log messages created by the NodeLogger in my Java-developed custom nodes no longer appear in the
knime.logfile or in the KNIME console, even though the Log Level configuration in
File > Preferences > KNIMEis set to INFO or DEBUG. INFO and DEBUG messages from the KNIME AP do appear as expected.
This started happening with version 5.5 (in lower versions it still works correctly). Only when in
{Workspace}/.metadata/knime/log4j3.xmlI change the default “error” to “info” or “debug in the following part:
<root>
<level value="error" />
<appender-ref ref="stdout" />
<appender-ref ref="stderr" />
<appender-ref ref="logfile" />
<appender-ref ref="knimeConsole" />
</root>the log messages from my code appear as per the configuration setting.
So it seems the minimal level in the configuration file overrides what is configured in the KNIME AP dialogue.
I could reproduce this in a newly created clean node with only logging statements and a in a fresh workspace. I tested in my Eclipse SDK for source versions 5.5 all the way to the nightly build, but the same happens in a freshly downloaded 5.8 release.
Is this expected behaviour or a bug?