Merge pull request #153 from OpenKMIP/feat/link-server-logs

Linking the loggers for the different KmipServer components
This commit is contained in:
Peter Hamilton 2016-04-04 10:47:14 -04:00
commit 2b67689057
3 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,8 @@ class CryptographyEngine(api.CryptographicEngine):
""" """
Construct a CryptographyEngine. Construct a CryptographyEngine.
""" """
self.logger = logging.getLogger(__name__) self.logger = logging.getLogger('kmip.server.engine.cryptography')
self._symmetric_key_algorithms = { self._symmetric_key_algorithms = {
enums.CryptographicAlgorithm.TRIPLE_DES: algorithms.TripleDES, enums.CryptographicAlgorithm.TRIPLE_DES: algorithms.TripleDES,
enums.CryptographicAlgorithm.AES: algorithms.AES, enums.CryptographicAlgorithm.AES: algorithms.AES,

View File

@ -79,7 +79,7 @@ class KmipEngine(object):
""" """
Create a KmipEngine. Create a KmipEngine.
""" """
self._logger = logging.getLogger(__name__) self._logger = logging.getLogger('kmip.server.engine')
self._cryptography_engine = engine.CryptographyEngine() self._cryptography_engine = engine.CryptographyEngine()

View File

@ -51,10 +51,9 @@ class KmipSession(threading.Thread):
kwargs={} kwargs={}
) )
if name is None: self._logger = logging.getLogger(
name = self.name 'kmip.server.session.{0}'.format(self.name)
)
self._logger = logging.getLogger('.'.join((__name__, name)))
self._engine = engine self._engine = engine
self._connection = connection self._connection = connection