pygelf4ovh
pygelf adaptation that work for OVH Logs Data Platform
Install
Just use pypi repository
pip install pygelf4ovh
Usage
Just add GelfOVHHandler in logging handler
#import pygelf4ovh
import pygelf4ovh
import logging
OVH_URL = 'gra2.logs.ovh.com'
OVH_PORT = 2202
OVH_TOKEN = "your ovh api token"
from pygelf4ovh import GelfOVHHandler
logger = logging.getLogger('mylog')
logger.setLevel(logging.INFO)
sh = GelfOVHHandler(host=OVH_URL,
port=OVH_PORT, ovh_token=OVH_TOKEN,
include_extra_fields=True,
debug=True)
logger.addHandler(sh)
# now your handler work as usual
logger.info("my info log")
Some warn
Pygelf4ovh has been only tested with python3
Release note
-
Version 0.3
- Add some doc
-
Version 0.2
- Test done on OVH Platform
- Thanks to : Ivan Mukhin for PyGelf : PyGelf GitHub project
-
Version 0.1
- Initial commit - first working version
Metadata
Release files for pygelf4ovh 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygelf4ovh-0.4.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygelf4ovh-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 kB
Release files / pygelf4ovh-0.4.tar.gz
| Download URL | pygelf4ovh-0.4.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d907fd8a54fddf08ed7a99cdff51b721214ef366a6f490f5ccc00ba5d59f84b7
|
|
BLAKE2b-256 checksum How to use checksums |
d188053fbbc82d840ae04c60e012336dcd0cdac2d808ee2b704e0aecc501f19a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / pygelf4ovh-0.4-py3-none-any.whl
| Download URL | pygelf4ovh-0.4-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c26387cac2d6ff7e0ac97a3672f54484c84bf5a2b944f7a170a38e6d04cbf328
|
|
BLAKE2b-256 checksum How to use checksums |
e3295ad45d763f9673984200bcadcdff8a5bec89dfe9122a27b2e2b88a3eb11d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|