Skip to main content
Solved

name of logfile


Hello.

Is it possible to change the name of the logfile a workbench writes by using a workbench in batchmode?

Regards Eduard

Best answer by takashi

Hi @walgram, you can specify a log file path in the command line with an option argument called LOG_FILENAME. e.g.

"C:\Program Files\FME\fme.exe" "C:\workspaces\myworkspace.fmw" --SourceDataset "C:\source\data.ext" --DestDataset "C:\output" LOG_FILENAME "C:\log\test.log"

Alternatively, you can create a user parameter linking to the Log File parameter in the Navigator window and then specify your desired log file path in the command line through the parameter.

0684Q00000ArKfvQAF.png

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

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • March 5, 2017

Hi @walgram, you can specify a log file path in the command line with an option argument called LOG_FILENAME. e.g.

"C:\Program Files\FME\fme.exe" "C:\workspaces\myworkspace.fmw" --SourceDataset "C:\source\data.ext" --DestDataset "C:\output" LOG_FILENAME "C:\log\test.log"

Alternatively, you can create a user parameter linking to the Log File parameter in the Navigator window and then specify your desired log file path in the command line through the parameter.

0684Q00000ArKfvQAF.png


femo
Contributor
Forum|alt.badge.img+6
  • Contributor
  • March 6, 2017

, this is another way to define a logfile name dynamically, using python:

You can of course use any other system parameter rather than "FME_MF_NAME". Or any other python function rather tham "time".

With the given settings, every fme run produces a new logfile.


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