From 969773b169b91eae0e887e1f27b7faf98b17954e Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 29 Sep 2020 13:22:15 +0100 Subject: [PATCH] Debug log file name now EDMarketConnector-debug..log --- EDMCLogging.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/EDMCLogging.py b/EDMCLogging.py index 91e293c4..246ee78d 100644 --- a/EDMCLogging.py +++ b/EDMCLogging.py @@ -126,12 +126,13 @@ class Logger: self.logger.addHandler(self.logger_channel) # Rotating Handler in sub-directory - # We want the files in %TEMP%\{appname}\ as {logger_name}.log and rotated versions + # We want the files in %TEMP%\{appname}\ as {logger_name}-debug.log and + # rotated versions. # This is {logger_name} so that EDMC.py logs to a different file. logfile_rotating = pathlib.Path(tempfile.gettempdir()) logfile_rotating = logfile_rotating / f'{appname}' logfile_rotating.mkdir(exist_ok=True) - logfile_rotating = logfile_rotating / f'{logger_name}.log' + logfile_rotating = logfile_rotating / f'{logger_name}-debug.log' self.logger_channel_rotating = logging.handlers.RotatingFileHandler( logfile_rotating,