Suppress logging exceptions on Python 2.6

Python 2.6 allows exceptions to propogate if a logging stream has
already been closed when the interpreter exits. This change suppresses
those exceptions as they would be for Python 2.7+.
Pass log level numbers, not names, to logging

Fix #17 by passing the number associated with a logging level, rather
than the level name, to the logger object.