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)