added logger to convertor

This commit is contained in:
Jakub Trllo 2022-10-25 16:57:33 +02:00
parent 6f642ab34c
commit 698fe8379e

View file

@ -61,9 +61,23 @@ class SubsetConvertorPlugin(object):
create_context
"""
_log = None
def __init__(self, create_context):
self._create_context = create_context
@property
def log(self):
"""Logger of the plugin.
Returns:
logging.Logger: Logger with name of the plugin.
"""
if self._log is None:
self._log = Logger.get_logger(self.__class__.__name__)
return self._log
@abstractproperty
def identifier(self):
"""Converted identifier.