Skip to main content

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

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


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..


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

 

 


Reply