Giter Site home page Giter Site logo

pygelf4ovh's Introduction

pygelf4ovh

pygelf adaptation that work for OVH Logs Data Platform

GitHub issues GitHub forks GitHub stars GitHub license Twitter

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.4
  • Version 0.3

    • Add some doc
  • Version 0.2

  • Version 0.1

    • Initial commit - first working version

pygelf4ovh's People

Contributors

olopost avatar

Stargazers

Frank Rousseau avatar  avatar

Watchers

 avatar

pygelf4ovh's Issues

Pip package broken [FIXED]

Hello,

I tried to install your package but it seems that the requirements.txt file is missing from the package. Can you update it on Pypi?
By the way, thank you for this package!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.