Executing Workflow as a Batch Application - Log Level Settings

I’ve run my workflow as a batch application. I need more detailed log so I set log level to DEBUG in KNIME ID and exported its configuration. I figured out my ads_poc_knime_preferences.epf file contains a line as follows:
/instance/org.knime.workbench.core/logging.loglevel.console=DEBUG
I started my workflow and I could see the settings seemed to be ignored completely. Here is the a console output the execution produced. Note there are no DEBUG entries at all there.

!SESSION 2018-09-04 12:48:16.158 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_152
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_CZ
Framework arguments:  -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=/Users/jan/temp/eis_to_stage -reset -preferences=/Users/jan/temp/ads_poc_knime_preferences.epf -workflow.variable=months_to_past_to_load,1,int -destDir=/Users/jan/temp/out/
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=/Users/jan/temp/eis_to_stage -reset -preferences=/Users/jan/temp/ads_poc_knime_preferences.epf -workflow.variable=months_to_past_to_load,1,int -consoleLog -destDir=/Users/jan/temp/out/

!ENTRY org.eclipse.core.net 1 0 2018-09-04 12:48:22.167
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
INFO 	 main BatchExecutor	 ===== Executing workflow /Users/jan/temp/eis_to_stage =====
2018-09-04 12:48:24.339 knime[6991:1099156] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode.
WARN 	 KNIME-Worker-1 Node	 The following columns are configured but no longer exist: "workflow_run_id"
WARN 	 KNIME-Worker-1 Node	 No columns selected
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Empty input table found
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
WARN 	 KNIME-Worker-3 Node	 Node created an empty data table.
INFO 	 main BatchExecutor	 Workflow execution done Finished in 7 mins, 29 secs (449098ms)
INFO 	 main BatchExecutor	 Saved workflow availabe at: /Users/jan/temp/out
INFO 	 main BatchExecutor	 ============= Workflow executed sucessfully ===============
Sep 04, 2018 12:55:54 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener unregister
INFO: Removing the extensions for bundle 118

I’d appreciate any advice on how to make my workflow execution more verbose. Thanks.

Just in case someone else has this question - the logs probably ARE at DEBUG level, but they do not show up in console output. Check .metadata/knime/knime.log

1 Like

Hi there!

Setting console log level in UI doesn’t affect logging on the command line. The only way to change the logging on the command line is by either modifying /.metadata/knime/log4j3.xml or by creating a custom log configuration file and setting that with a command line parameter.

Br,
Ivan