Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaybeede/pylogger-unified
A python wrapper that handles web logging, standard application logging to different format: json (gelf), colored text, raw, gnome notifications
https://github.com/jaybeede/pylogger-unified
Last synced: 17 days ago
JSON representation
A python wrapper that handles web logging, standard application logging to different format: json (gelf), colored text, raw, gnome notifications
- Host: GitHub
- URL: https://github.com/jaybeede/pylogger-unified
- Owner: JayBeeDe
- License: gpl-3.0
- Created: 2022-10-14T15:27:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T16:24:33.000Z (over 1 year ago)
- Last Synced: 2024-11-09T16:48:03.307Z (2 months ago)
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pylogger_unified
A python wrapper that handles web logging, standard application logging to different format: json (gelf), colored text, raw, gnome notifications
## Build manually (testing env for the moment)
Install testing envrionment here: .
```bash
cd pylogger-unified/
rm ./dist/* -fr
python3 -m build
python3 -m twine upload --repository testpypi ./dist/*
```You can test in a dev environment the packaging:
```bash
pip3 install -i https://test.pypi.org/simple/ pylogger_unified
```When everything is ok on testpypi repo, you can publish it to prod:
```bash
python3 -m twine upload ./dist/*
```## Install the lib
```bash
pip3 install pylogger-unified
```## Start Using the lib
```python3
from pylogger_unified import logger as pylogger_unified
logger=pylogger_unified.init_logger()
logger.info("this is a test")
```