Metadata-Version: 2.4
Name: logger-protocol
Version: 1.0.0
Summary: Python protocol for the standard lib Logger and Logger-like classes. 
Author-email: Ariel Boucheikhchoukh <ariel.boucheikh@protonmail.com>
License-Expression: MIT
Project-URL: repository, https://github.com/ari-bou/logger-protocol
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# Logger Protocol
Python protocol for the standard lib Logger and Logger-like classes.

```python
import logging

from logger_protocol import LoggerProtocol, SilentLogger


class MyClass:
    _logger: LoggerProtocol

    def __init__(self, verbose: bool = True):
        self._logger = logging.getLogger(__name__) if verbose else SilentLogger
```
