Skip to main content
Question

Undo append to logfie option not working for workspace in workspacerunner

  • September 3, 2018
  • 3 replies
  • 29 views

vki
Contributor
Forum|alt.badge.img+7
  • Contributor
  • 64 replies

I have a workspace with a workspace runner. For testing, I used the 'append to logfile' option, but turned it off again later. But in the "child workbench" all entries still get appended to the logfile, even though the 'append'-box in the workbench-options is not checked.

How can I get FME to stop appending to the logfile?

Thanks, Vera

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.

3 replies

lau
Forum|alt.badge.img+3
  • 65 replies
  • September 3, 2018

In your child workspace could you check if "Append to Log File" is unchecked? If no, uncheck it and then save your workspace. What happens if you launch the Parent workspace? Does the behaviour of your child logfile is still "append to logfile"?

Honestly I don't really use this option. I prefer to use a Scripted Python Parameter $(TimeStamp):

from datetime import datetime

t = datetime.now().strftime ("%Y%m%d%H%M%S")

return t

Then I set the "Log File" parameter to:

theworkspacename_$(TimeStamp).log

Let me know if something is not clear


vki
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • 64 replies
  • September 4, 2018

The "Append to Log File" Option is unchecked in both workbenches.

The parent workbench runs every night and its logfile is new every night, but all of the log-entries of the child workbench (it runs 4 x) get appended to its logfile, so it gets quite big after a while...

I've never used scripted parameters, but it sounds interesting and I have to read more about it... But right now, I just want to get rid of this appending..


lau
Forum|alt.badge.img+3
  • 65 replies
  • September 4, 2018

The "Append to Log File" Option is unchecked in both workbenches.

The parent workbench runs every night and its logfile is new every night, but all of the log-entries of the child workbench (it runs 4 x) get appended to its logfile, so it gets quite big after a while...

I've never used scripted parameters, but it sounds interesting and I have to read more about it... But right now, I just want to get rid of this appending..

I was not able to reproduce your behavior :( When I switch from append to not append, the behavior adapts correctly