Skip to main content
Solved

name of logfile

  • March 4, 2017
  • 2 replies
  • 242 views

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

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.

2 replies

takashi
Celebrity
  • 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.