diff --git a/docs/logging.rst b/docs/logging.rst index 655fc98..9e8e457 100644 --- a/docs/logging.rst +++ b/docs/logging.rst @@ -18,25 +18,22 @@ This library utilizes an own instance of `Logger`_, which you may access and add my_log_handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')) serializable.LOGGER.addHandler(my_log_handler) - print(serializable.LOGGER.name) - @serializable.serializable_class class Chapter: - def __init__(self, *, number: int, title: str) -> None: - self._number = number - self._title = title + def __init__(self, *, number: int, title: str) -> None: + self._number = number + self._title = title - @property - def number(self) -> int: - return self._number + @property + def number(self) -> int: + return self._number - @property - def title(self) -> str: - return self._title + @property + def title(self) -> str: + return self._title moby_dick_c1 = Chapter(number=1, title='Loomings') print(moby_dick_c1.as_json()) -