Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
some examples on the effects of logging with libraries
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
verboselib
README
importonly.py
nologging.py
off_by_default.py
on_by_default.py
simplelogging.py

README

Examples of configuring logging for an app, or not, when using libraries that
use python's built in logging framework.

nologging 
    shows what happens when you use a library that uses logging at various levels
importonly
    shows when logging is imported, but never used or configured. (a single
warning is squelchable)

simplelogging
    logging is imported, and used directly via the class methods, ala "A
simple example" on http://docs.python.org/howto/logging.html

on_by_default and off_by_default
    using explict configuration of logging to set the default level, and then
two different config methods, depending on whether you prefer libraries to
only be seen if asked for, or seen until asked to be quiet

Something went wrong with that request. Please try again.