Solved

How can I set the log level when running FME Desktop from the command line with a command file?


When I run a workspace from FME Desktop the Log Message Filter setting in FME Options/Translation is respected. But it's ignored when I run fme.exe from the command line and pass a Command file. Is there a parameter I can set on the command line or in the command file? I just want Errors and Warnings.

icon

Best answer by david_r 18 May 2020, 08:12

View original

4 replies

Userlevel 4

When running a workspace from the command line (or on FME Server, even), the logging options used are those that were active when the workspace was last saved. Meaning that the currently active logging options are saved in the .fmw file (in the LOG_FILTER_MASK tag, if you want to look for it).

If you want to specify a specific logging level of a workspace started from the command line:

  1. Open the workspace in FME Workbench
  2. Modify the logging options
  3. Save the workspace

 

Awesome - Thanks David!

Userlevel 2
Badge +16

On the same topic, I posted an idea some time ago: To be able to change the logging mode at runtime.

My idea was about the debug mode, but can be extended to any logging mode:

https://knowledge.safe.com/content/idea/46396/show-debug-logging-mode-as-workspace-property.html

Userlevel 4

On the same topic, I posted an idea some time ago: To be able to change the logging mode at runtime.

My idea was about the debug mode, but can be extended to any logging mode:

https://knowledge.safe.com/content/idea/46396/show-debug-logging-mode-as-workspace-property.html

Great idea, agree completely. Upvoted.

Reply