Skip to main content

I have a workbench where I use a python shutdown script. This script is printing some results to the translation log window.

I would like to the see the text that the python shutdown script is printing to the translation log window in a different color than black. I used some suggestions from the internet but they are not working as the translation log is not a "real" python terminal.

I tried a few things without installing any library to python though. As I will be sharing the workbench with colleagues who will run the wb locally, I would prefer if it's not necessary to install a library.

Another question is if it is possible to print emojis to the translation window using a python shutdown script? I know it is possible in python e.g. print("\\U0001f600") but this print statement is not working when printing it to the translation log window. Thanks.

Short of sending the messages through fmeobjects.FMELogFile().logMessageString(msg, severity) with a specified severity, I do not know of any possibility of influencing the color in the log file.

You may have more lucking inserting emojis in the log file starting FME 2020 (although it's pure speculation on my part), as FME is going full unicode then.


Reply