Skip to main content

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

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


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


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.


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


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.


Hi ​@david_r,

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