Minimalistic wrapper for Python logging.
Project description
Unix: Windows: Metrics: Usage:
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")
Revision History
0.1 (2018/03/03)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minilog-0.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
minilog-0.1-py3-none-any.whl
(6.4 kB
view hashes)