Metadata-Version: 2.1
Name: python-simple-logger
Version: 1.0.10
Summary: A simple logger for python
Home-page: https://github.com/RedHatQE/python-simple-logger
License: Apache-2.0
Author: Meni Yakove
Author-email: myakove@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: colorlog (>=6.7.0,<7.0.0)
Project-URL: Bug Tracker, https://github.com/RedHatQE/python-simple-logger/issues
Project-URL: Documentation, https://github.com/RedHatQE/python-simple-logger/blob/main/README.md
Project-URL: Download, https://pypi.org/project/python-simple-logger/
Description-Content-Type: text/markdown

# Simple Python logger

A simple logger for console/file logging with duplicate logs filter support

## Release new version

### requirements

* Export GitHub token

```bash
export GITHUB_TOKEN=<your_github_token>
```

* [release-it](https://github.com/release-it/release-it)

Run the following once (execute outside repository dir for example `~/`):

```bash
sudo npm install --global release-it
npm install --save-dev @release-it/bumper
```

### usage

* Create a release

```bash
git pull
release-it # Follow the instructions
```

## Usage

```python
from simple_logger.logger import get_logger
logger = get_logger(name=__name__, level=logging.DEBUG, filename="my-log.log")
logger.info("This is INFO log")
```

