Skip to main content

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.4

  • hotfix requirement

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.

Source Distribution

flask-logsocketio-0.1.4.tar.gz (13.2 kB view details)

Uploaded Source

File details

Details for the file flask-logsocketio-0.1.4.tar.gz.

File metadata

File hashes

Hashes for flask-logsocketio-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7282cb32ea2c57d8739b3b22681ed32502445fca75610d2706e7460033120c85
MD5 7a82e6ca9293ad397a663666e56e0707
BLAKE2b-256 b678a30be76cf865fee0e2be84d975801c2d40952ecd66eac31ed65d8d7d42cf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page