Metadata-Version: 2.1
Name: classlogging
Version: 1.2.1
Summary: Class-based logging facility
Home-page: https://github.com/reartnew/classlogging
License: MIT
Author: Artem Novikov
Author-email: artnew@list.ru
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Typing :: Typed
Provides-Extra: tests
Requires-Dist: pylint (>=3.2.6,<4.0.0) ; extra == "tests"
Requires-Dist: pytest (>=8.3.4,<9.0.0) ; extra == "tests"
Requires-Dist: pytest-bandit (>=0.6.1,<0.7.0) ; extra == "tests"
Requires-Dist: pytest-black (>=0.6.0,<0.7.0) ; extra == "tests"
Requires-Dist: pytest-mypy (>=0.10.3,<0.11.0) ; extra == "tests"
Requires-Dist: pytest-pylint (>=0.21.0,<0.22.0) ; extra == "tests"
Project-URL: Repository, https://github.com/reartnew/classlogging
Description-Content-Type: text/markdown

# classlogging

Class-based logging facility.

## Installation

```shell
pip install classlogging
```

## Usage example

```python
import classlogging


class MyClass(classlogging.LoggerMixin):
    def test_log_value(self, value: str) -> None:
        self.logger.debug(f"Got value: {value}")


if __name__ == "__main__":
    classlogging.configure_logging(level=classlogging.LogLevel.DEBUG)
    MyClass().test_log_value("Foo")
    # Writes to stderr:
    # 2022-01-01 12:34:56,789 DEBUG [__main__.MyClass] Got value: Foo
```

