pygelf adaptation that work for OVH Logs Data Platform
Project description
pygelf4ovh
pygelf adaptation that work for OVH Logs Data Platform
Usage
Just add GelfOVHHandler in logging handler
#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")
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.3.tar.gz
(1.9 kB
view details)
File details
Details for the file pygelf4ovh-0.3.tar.gz
.
File metadata
- Download URL: pygelf4ovh-0.3.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06b7c370139ad97b1e37e98a295cabbb435026d0184844e1d0891e36e2344da7 |
|
MD5 | d6f3e141252e03f9392c560ca8159071 |
|
BLAKE2b-256 | cdbe5e77ee59a75e3e5e60d2f0575037ee1640c13bc8b5b0d74c6e0196437cbc |