This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is a handy flask extension for setting up logging for your application that is super simple to setup. A basic example is:

import flask
from flask.ext.log import Logging

app = flask.Flask(__name__)
app.config['FLASK_LOG_LEVEL'] = 'DEBUG'
flask_log = Logging(app)

app.logger.debug('Testing a debug message')

So the level of logging is configurable through regular flask configuration methods. Additionally, since we are setting up the root logger, you can use whatever logger you want as you aren’t restricted to the flask application logger. i.e. something like:

import logging

log = logging.getLogger('my-special-logger')
log.critical('Oh my!')

will also keep the formatter and level if the extensions has been initialized anywhere.


  • Sets up syslog handling to either /dev/log, /var/run/syslog, or on UDP port 514 depending on what is available.

  • Adds a log formatter packed with information and by default produces output like: [2015-03-31 18:10:17,816] CRITICAL 42282 [__main__] - [my_hostname] - Hi

  • Full code coverage

  • The log formatter can be overidden with something like:

    flask_logger = Logging(app)
    flask_logger.set_formatter('Log message follows: %(message)s')
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
flask-log-0.1.0.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Apr 6, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting