From c05015a64651a862dc9a6888d0f287055ae8742b Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Thu, 26 Dec 2019 23:11:57 -0800 Subject: [PATCH] [logging] Add .log suffix for log files --- pyhmy/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhmy/logging.py b/pyhmy/logging.py index 6c19217..bb0698a 100644 --- a/pyhmy/logging.py +++ b/pyhmy/logging.py @@ -17,7 +17,7 @@ class ControlledLogger: if log_dir.endswith('/'): log_dir = log_dir[:-1] os.makedirs(log_dir, exist_ok=True) - handler = logging.FileHandler(f"{log_dir}/{logger_name}") + handler = logging.FileHandler(f"{log_dir}/{logger_name}.log") handler.setFormatter(logging.Formatter('%(levelname)s - %(message)s')) self.logger = logging.getLogger(logger_name)