Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.
/ flask-fluentd Public archive

Log events into Fluentd from Flask

License

Notifications You must be signed in to change notification settings

thread/flask-fluentd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Fluentd

A library to log fluent events from Flask applications

Installation

pip install flask-fluentd

Configuration

Takes just one configuration setting, of EVENT_TAG_PREFIX, which is prepended to the tag of all outgoing events.

Usage

from flask import Flask, g
from flask_fluentd import Fluentd


app = Flask(__name__)
events = Fluentd(app)

@app.before_request
def before_request():
    g.events = events

# ...

@app.route('/')
def index():
    g.events.event(('test', {'foo': 'bar'})

About

Log events into Fluentd from Flask

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages