Skip to main content
Question

Capture Translation Log

  • June 28, 2016
  • 2 replies
  • 192 views

I want to append some of the output of the Translation log to a text file every time the workspace runs (mainly session duration, whether the translation was successful or not, and any error messages). How can I do this?

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

Forum|alt.badge.img+5

Have a look at the LogMessageStreamer transformer. There are some limitations about what it will capture, but it should grab the end of the log file. Then you can write that to a text file.

Also check out the documentation for Python shutdown scripts.You have access to variables that record cpu time, failure messages, process ID, etc, etc. The downside here is that FME has closed at that point, so you would have to use Python to write the data (or use Python to call a second FME workspace that writes the data).


  • Author
  • June 29, 2016

Have a look at the LogMessageStreamer transformer. There are some limitations about what it will capture, but it should grab the end of the log file. Then you can write that to a text file.

Also check out the documentation for Python shutdown scripts.You have access to variables that record cpu time, failure messages, process ID, etc, etc. The downside here is that FME has closed at that point, so you would have to use Python to write the data (or use Python to call a second FME workspace that writes the data).

Thanks @mark2catsafe I have looked at both of these options. The LogMessageStreamer gave some information but not the runtime and status information I needed.

I eventually got what I needed by setting a log file location under Workspace Parameters, and selecting "Append to log file" within FME Options.