Skip to main content

Flask LogSocketIo module

Project description

Flask-logsocketio

Flask-logsocketio generate on socketio “log” log of your application

It use flask-socketio module

Installation

pip install flask-logsocketio

Or

git clone https://github.com/fraoustin/flask-logsocketio.git
cd flask-logsocketio
python setup.py install

Usage

from flask import Flask, request, current_app
from flask_logsocketio import LogSocketIO

app = Flask(__name__)
app.secret_key = 'super secret string'
app.register_blueprint(LogSocketIo(ui_testing=True))

@app.route("/")
def hello():
    current_app.logger.error("error from hello")
    current_app.logger.info("info from hello")
    current_app.logger.debug("debug from hello")
    return "Hello World!"

if __name__ == "__main__":
    app.run(port=8080)

Feature

V. 0.1.1

  • add param url_prefix

V. 0.1.0

  • init

Download files

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

Files for flask-logsocketio, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size flask-logsocketio-0.1.2.tar.gz (13.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page