pygelf adaptation that work for OVH Logs Data Platform
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygelf4ovh-0.4.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file pygelf4ovh-0.4.tar.gz
.
File metadata
- Download URL: pygelf4ovh-0.4.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d907fd8a54fddf08ed7a99cdff51b721214ef366a6f490f5ccc00ba5d59f84b7 |
|
MD5 | c6fffee9b1f7fd3e6c21ef951cd75bf0 |
|
BLAKE2b-256 | d188053fbbc82d840ae04c60e012336dcd0cdac2d808ee2b704e0aecc501f19a |
File details
Details for the file pygelf4ovh-0.4-py3-none-any.whl
.
File metadata
- Download URL: pygelf4ovh-0.4-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c26387cac2d6ff7e0ac97a3672f54484c84bf5a2b944f7a170a38e6d04cbf328 |
|
MD5 | 07cc4ac9976fcd622581012db4117f3e |
|
BLAKE2b-256 | e3295ad45d763f9673984200bcadcdff8a5bec89dfe9122a27b2e2b88a3eb11d |