Logging doesn't work in invoked Python code

Hello
I invoke the Python code in UIPAth studio. The code works fine, no problem however the logging in Python has stopped working completely. The log file just is not created at all. When I run the code in Python all OK with the log file. What can be the cause of this ? The Python script is straightforward:

Define and configure the Logger

LOG_FORMAT = "%(levelname)s %(asctime)s - %(message)s"
logging.basicConfig(filename = "log.txt", level = logging.DEBUG, format = LOG_FORMAT)
logger = logging.getLogger()

The script starts here…

logger.info("Process started")