Merge "Using named logger instead of root logger"
This commit is contained in:
commit
c8852d99a5
@ -25,7 +25,7 @@ try:
|
||||
except ImportError:
|
||||
# for python3
|
||||
import http.client as httplib
|
||||
|
||||
|
||||
import sys
|
||||
import logging
|
||||
|
||||
@ -81,7 +81,7 @@ class Configuration(object):
|
||||
"""
|
||||
Initializes logger settings.
|
||||
"""
|
||||
self.logger = logging.getLogger()
|
||||
self.logger = logging.getLogger(__name__)
|
||||
formatter = logging.Formatter(self.logging_format)
|
||||
stream_handler = logging.StreamHandler()
|
||||
stream_handler.setFormatter(formatter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user