Skip to main content

Flask LogManager module

Project description


Manage level log of your flask application

Generate one logger by rule and add REST api for manager each logger


pip install flask-logmanager


git clone
cd flask-logmanager
python install


from flask import Flask, request, current_app
from flask_logmanager import LogManager

app = Flask(__name__)
app.register_blueprint(LogManager(url_prefix="/api", ui_testing=True))

def testOne():
    current_app.logger.error("error from testOne")"info from testOne")
    current_app.logger.debug("debug from testOne")
    return "Hello testOne!"

def testTwo():
    current_app.logger.error("error from testTwo")"info from testTwo")
    current_app.logger.debug("debug from testTwo")
    return "Hello testOne!"

if __name__ == "__main__":   #TODO

You can change level log of /testone on


If you want change level in your application

from flask_logmanager import get_logger_by_rule
import logging



# add management login: user and group # test with connexion application

V. 0.2.10

  • hotfix url for ui

V. 0.2.9

  • hotfix requirement

V. 0.2.7

  • add param url_prefix

V. 0.2.6

  • add level default

V. 0.2.5

  • add property endpoints for flask-bluelogin

V. 0.2.4

  • hotfix for base_model

V. 0.2.3

  • hotfix for error 405 on set logger

V. 0.2.2

  • hotfix for dynamic host and port in swagger.yaml

V. 0.2.0

  • change manage current_app.logger
  • change swagger-ui (default swagger.yaml)
  • decorator to_json
  • concentrate call logging on __init__

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-logmanager, version 0.2.11
Filename, size File type Python version Upload date Hashes
Filename, size flask-logmanager-0.2.11.tar.gz (963.7 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