"""Contains logging utilities for the trustpoint project."""from__future__importannotationsimportloggingfromtypingimportTYPE_CHECKINGifTYPE_CHECKING:fromtypingimportAny
[docs]classLoggerMixin:"""Mixin that adds log features to the subclass."""
[docs]def__init_subclass__(cls,**kwargs:Any)->None:"""Adds an appropriate logger to the subclass and makes it available through cls.logger."""super().__init_subclass__(**kwargs)cls.logger=logging.getLogger('trustpoint').getChild(cls.__module__).getChild(cls.__name__)