Metadata-Version: 2.1
Name: pygelf4ovh
Version: 0.3
Summary: pygelf adaptation that work for OVH Logs Data Platform
Home-page: https://github.com/olopost/pygelf4ovh
Author: Samuel MEYNARD
Author-email: samuel@meyn.fr
License: UNKNOWN
Description: # pygelf4ovh
        pygelf adaptation that work for OVH Logs Data Platform
        
        ## Usage
        Just add GelfOVHHandler in logging handler
        
        ~~~python
        #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](https://github.com/keeprocking/pygelf)
           
         - Version 0.1
           * Initial commit - first working version
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
