semvec/pypi-packages huggingface dataset:
log.py 0.0.1
A basic logging library for Python.
Requires Python: >= 3.10

# <b><u>log.py</u></b>
[![Python_Shield](https://img.shields.io/badge/Python_3.10-white?style=for-the-badge&logo=python)](https://www.python.org/downloads/release/python-3100/)

## <b>📖 About:</b>
A basic logging library for Python with the capability to:
- save to files.
- have custom formats.
- have custom levels.
- be used instantiated.
- be used non-instantiated.

## <b>📝 Basic Usage:</b>
<i>(For more advanced uses, please refer to the given examples or the documentation.)</i>
### <u>Instantiated:</u>
- Code:
```python
from logpy import Logger
from logpy.log import Levels

logger = Logger()
logger.log("Hello World!")
logger.log("Oh no, something went wrong!", Levels.error)
```

- Terminal:\
![img.png](images/terminal_result.png)

### <u>Non-instantiated:</u>
- Code:
```python
from logpy import Logger
from logpy.log import Levels

Logger.slog("Hello World!")
Logger.slog("Oh no, something went wrong!", Levels.error)
```

- Terminal:\
![img.png](images/terminal_result.png)

## <b>🔧 Examples:</b>
[Click me!](https://github.com/SebastiaanBij/log.py/tree/main/examples)

## <b>📚 Documentation:</b>

## <b>❗ Requirements:</b>
- [Python 3.10](https://www.python.org/downloads/release/python-3100/)