Hi i am using uipath to execute my python program using selenium.
Recently, I added the logging function to my program.
logging function works when i manually execute my program.
but it doesn’t work when executing by uipath.
it is sample logging code
The program leaves log on file “error.log”
but When i execute program using uipath, log file isn’t created.
logger = logging.getLogger("log")
logger.setLevel(logging.ERROR)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
stream_handler = logging.StreamHandler()
stream_handler.setFormatter(formatter)
logger.addHandler(stream_handler)
file_handler = logging.FileHandler("error.log")
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)
how to leave log when uipath executes the python program?