aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/libmsec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index fa5a121..f7b7f54 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -128,7 +128,7 @@ class Log:
# log to file
if log_file:
try:
- self.file_h = logging.FileHandler(self.log_path)
+ self.file_h = logging.FileHandler(self.log_path, encoding='utf-8', mode='a+')
formatter = logging.Formatter('%(asctime)s %(levelname)s: %(message)s')
self.file_h.setFormatter(formatter)
self.logger.addHandler(self.file_h)