semvec/pypi-packages huggingface dataset:
a-sane-logger 0.3
A simple logging configuration module
Requires Python: >=3.6
Keywords: logging

# Sane Logger

This module provides a simple logging configuration with a named logger for Python applications.

The settings are `%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s]  %(message)s`.

## Installation

You can install the package using pip:

```bash
pip install a_sane_logger
```

# Usage

Simply import the module in your code and use the logger:

```python
import a_sane_logger as sn

logger = sn.sane_logger

logger.info("This is an info message.")
logger.error("This is an error message.")
```

The logs should look like:

```
2024-10-09 18:57:24,520 [MainThread  ] [INFO ]  This is an info message.
2024-10-09 18:57:26,204 [MainThread  ] [ERROR]  This is an error message.
```