Skip to main content
Solved

Completely suppress logging

  • March 17, 2025
  • 6 replies
  • 87 views

itay
Supporter
Forum|alt.badge.img+18

Hi There,

I was wondering if anybody knows of a way to completely or partially suppress the logging in a workspace? (even if it is a hacky method)

I am aware of the settings in the options menu but unfortunatly they just don’t do the job necessary.

Cheers,

Itay

Best answer by david_r

Try the following in the Python startup script:

import fmeobjects
fmeobjects.FMELogFile().silent(True)

Testing with FME 2025.0 I only get the lines up until the startup script is executed, then only a single line at the end stating the the translation was successful.

Documentation: https://docs.safe.com/fme/html/fmepython/api/fmeobjects/_log/fmeobjects.FMELogFile.silent.html

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.

6 replies

david_r
Celebrity
  • Best Answer
  • March 17, 2025

Try the following in the Python startup script:

import fmeobjects
fmeobjects.FMELogFile().silent(True)

Testing with FME 2025.0 I only get the lines up until the startup script is executed, then only a single line at the end stating the the translation was successful.

Documentation: https://docs.safe.com/fme/html/fmepython/api/fmeobjects/_log/fmeobjects.FMELogFile.silent.html


itay
Supporter
Forum|alt.badge.img+18
  • Author
  • Supporter
  • March 17, 2025

Hi ​@david_r,

Thanks for the fast responce, this works in Form like a charm now….Is it possible to implement it in a linked transformer? 😉 (no startup script option there)

 

Cheers,

Itay


david_r
Celebrity
  • March 17, 2025

I guess you could put it in a PythonCaller, just be aware that it’s a global setting that will influence the entire workspace execution, and probably not just the linked transformer (not tested).

You can set .silent(False) to re-activate logging.


itay
Supporter
Forum|alt.badge.img+18
  • Author
  • Supporter
  • March 17, 2025

HI ​@david_r

Unfortunately this does not work since the workspace is already initiated and therefore cannot be set to ‘silence’ the logfile. I don’t know if there is a way to do this at all, I will settled for encrypting the logfile but then again this might also prove to be beyond the current capabilities.

 

Itay


david_r
Celebrity
  • March 18, 2025

Unfortunately this does not work since the workspace is already initiated and therefore cannot be set to ‘silence’ the logfile. I don’t know if there is a way to do this at all, I will settled for encrypting the logfile but then again this might also prove to be beyond the current capabilities.

That sounds unexpected. My understanding is that you should be able to silence and un-silence the log at any point during the translation.


itay
Supporter
Forum|alt.badge.img+18
  • Author
  • Supporter
  • March 18, 2025

Hi ​@david_r,

I would gladly be proven wrong :) this would be the best solution for me.