change default log name

This commit is contained in:
2024-10-19 18:23:11 +02:00
parent 89ac85bacd
commit 2ebb6ff77e
2 changed files with 2 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ class Pihole:
__VERSION__ = '1.0.0'
_log = logging.getLogger(__name__)
__logFile = logging.FileHandler(__name__)
__logFile = logging.FileHandler('Pihole.log')
__logPrinter = logging.StreamHandler()
__logFormat = logging.Formatter('%(asctime)s %(levelname)s \t %(name)s : %(message)s')
__logFile.setFormatter(__logFormat)