Overview
Instead of including this boilerplate in every module:
import logging
log = logging.getLogger(__name__)
def foobar(name):
log.info("Hello, %s!", name)
with this package you can simply:
import log
def foobar(name):
log.info("Hello, %s!", name)
It will produce the exact same standard library logging
records behind the scenes.
Installation
$ pip install minilog
Setup
Optionally, change for format for all logging handlers:
log.init("%(levelname)s: %(name)s: %(message)s")