From ae8b698996502197a2c4b903b6185f805d62259b Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Sat, 18 Apr 2020 19:52:55 -0700 Subject: [PATCH] [logging] expose file path --- pyhmy/_version.py | 2 +- pyhmy/logging.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyhmy/_version.py b/pyhmy/_version.py index 0ed81b6..1d4dae5 100644 --- a/pyhmy/_version.py +++ b/pyhmy/_version.py @@ -7,5 +7,5 @@ Provides pyhmy version information. from incremental import Version -__version__ = Version('pyhmy', 20, 1, 27) +__version__ = Version('pyhmy', 20, 1, 29) __all__ = ["__version__"] diff --git a/pyhmy/logging.py b/pyhmy/logging.py index 5511b4a..4b4787a 100644 --- a/pyhmy/logging.py +++ b/pyhmy/logging.py @@ -40,14 +40,14 @@ class ControlledLogger: self.logger = logging.getLogger(logger_name) self.logger.addHandler(handler) self._lock = threading.Lock() - self._file_dir = f"{log_dir}/{logger_name}.log" + self.filepath = f"{log_dir}/{logger_name}.log" self.info_buffer = [] self.debug_buffer = [] self.warning_buffer = [] self.error_buffer = [] def __repr__(self): - return f"" + return f"" def _clear(self): """