mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added logger to convertor
This commit is contained in:
parent
6f642ab34c
commit
698fe8379e
1 changed files with 14 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue