Skip to main content
Best Answer

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

  • May 18, 2020
  • 4 replies
  • 219 views

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.

Best answer by david_r

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

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

david_r
Celebrity
  • Best Answer
  • May 18, 2020

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

 


  • Author
  • May 18, 2020

Awesome - Thanks David!


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • May 18, 2020

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


david_r
Celebrity
  • May 18, 2020

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.