change default log name
This commit is contained in:
@@ -10,7 +10,7 @@ class Pihole:
|
|||||||
__VERSION__ = '1.0.0'
|
__VERSION__ = '1.0.0'
|
||||||
|
|
||||||
_log = logging.getLogger(__name__)
|
_log = logging.getLogger(__name__)
|
||||||
__logFile = logging.FileHandler(__name__)
|
__logFile = logging.FileHandler('Pihole.log')
|
||||||
__logPrinter = logging.StreamHandler()
|
__logPrinter = logging.StreamHandler()
|
||||||
__logFormat = logging.Formatter('%(asctime)s %(levelname)s \t %(name)s : %(message)s')
|
__logFormat = logging.Formatter('%(asctime)s %(levelname)s \t %(name)s : %(message)s')
|
||||||
__logFile.setFormatter(__logFormat)
|
__logFile.setFormatter(__logFormat)
|
||||||
|
|||||||
1
__init__.py
Normal file
1
__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
from .Pihole import Pihole
|
||||||
Reference in New Issue
Block a user