def __getattr__(self, name: str) -> Callable:
        """Allows the DummyLogger to be called with arbitrary methods, to avoid AttributeErrors."""

        def method(*args: Any, **kwargs: Any) -> None:
            return None

        return method
Allows the DummyLogger to be called with arbitrary methods, to avoid AttributeErrors.
src/lightning/pytorch/loggers/logger.py