Repository will be archived on 2021-12-10
Flask extension allowing to mimic Ruby on Rails' lograge gem behavior
Enable logger for the application
from flask import Flask
from flask_rage import FlaskRage
app = Flask(__name__)
rage = FlaskRage()
rage.init_app(app)
To avoid multiple entries you may want to disable (e.g. send to logging.NullHandler
) messages
from werkzeug
or gunicorn
[handler_stream]
class=logging.StreamHandler
formatter=flask_rage
args=()
[formatter_flask_rage]
class=flask_rage.FlaskRageFormatter