diff --git a/log_with_context/__init__.py b/log_with_context/__init__.py index 41d9754..519b5f1 100644 --- a/log_with_context/__init__.py +++ b/log_with_context/__init__.py @@ -142,6 +142,10 @@ def exception(self, msg: Any, *args: Any, **kwargs: Any) -> None: """Exception.""" return self._msg(self.base_logger.exception, msg, *args, **kwargs) + def __getattr__(self, name): + """get attribute of base logger in case object of this class have nu such attribute""" + return getattr(self.base_logger, name) + class add_logging_context: """