Skip to main content
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.

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

 

View original
Did this help you find an answer to your question?

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+18
  • 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
erik_jan wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings