Skip to main content

Output syslog of the json format.

Project description

Downloads Supported Python versions Latest Version License

This is the Flask extension facility to output syslog of the Json form.


pip install flask-json-syslog


JSON_SYSLOG_LEVEL = 'info'# Log level

from flask import g
from flask_json_syslog import FlaskJsonSyslog

app = Flask(__name__)
flask_json_syslog = FlaskJsonSyslog(app)


def before_request():
    g.json_log = flask_json_syslog.put

In your application

g.json_log({'foo': 'bar'}, ...)



$template json,"%msg%\n"
local5.* /var/log/local5.log;json


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Flask-Json-Syslog, version 0.1.28
Filename, size File type Python version Upload date Hashes
Filename, size Flask-Json-Syslog-0.1.28.macosx-10.10-x86_64.tar.gz (3.3 kB) File type Dumb Binary Python version any Upload date Hashes View
Filename, size Flask_Json_Syslog-0.1.28-py2.7.egg (4.2 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size Flask-Json-Syslog-0.1.28.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page