Using named logger instead of root logger
Change-Id: I1a38b1bb3f1e031662b5e1f77528827fe04fdf9a
This commit is contained in:
parent
f4af84248f
commit
37d64942cd
@ -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