Skip to main content
Solved

Completely suppress logging


itay
Supporter
Forum|alt.badge.img+16
  • Supporter

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

View original
Did this help you find an answer to your question?

6 replies

david_r
Evangelist
  • 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+16
  • 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
Evangelist
  • 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+16
  • 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
Evangelist
  • March 18, 2025
itay wrote:

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+16
  • Author
  • Supporter
  • March 18, 2025

Hi ​@david_r,

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings