diff --git a/openpype/pipeline/creator_plugins.py b/openpype/pipeline/creator_plugins.py index daa5a1d094..5bc5bd5703 100644 --- a/openpype/pipeline/creator_plugins.py +++ b/openpype/pipeline/creator_plugins.py @@ -1,4 +1,5 @@ import copy +import logging import collections from uuid import uuid4 @@ -87,6 +88,9 @@ class BaseCreator: to `self` if it's not Plugin specific. """ + # Variable to store logger + _log = None + # Creator is enabled (Probably does not have reason of existence?) enabled = True @@ -104,6 +108,12 @@ class BaseCreator: """Family that plugin represents.""" pass + @property + def log(self): + if self._log is None: + self._log = logging.getLogger(self.__class__.__name__) + return self._log + @abstractmethod def create(self, options=None): """Create new instance.