diff --git a/Base/BaseLog.py b/Base/BaseLog.py index bbb323b..0974baa 100644 --- a/Base/BaseLog.py +++ b/Base/BaseLog.py @@ -24,7 +24,7 @@ def __init__(self, devices): self.logger.setLevel(logging.INFO) # create handler,write log - fh = logging.FileHandler(os.path.join(logPath, "outPut.log")) + fh = logging.FileHandler(os.path.join(logPath, "outPut.log"), encoding="UTF-8") # Define the output format of formatter handler formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s') fh.setFormatter(formatter)