Python - Simple and Concise Logging Setup
Published on Tue, 03 Oct 2017
By Harlin Seritt
Here is a simple and concise logging setup for a Python module:
#!/usr/bin/env python """ A logging demo that shows most of all you'll ever need to know concerning Python and logging. """ import logging import sys logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) log_format = logging ...