Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions log_with_context/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down