Minimalistic wrapper for Python logging.
Project description
Overview
Every project should utilize logging, but for simple use cases, this requires a bit too much boilerplate. Instead of including all of this in your modules:
import logging
logging.basicConfig(
level=logging.INFO,
format="%(levelname)s: %(name)s: %(message)s",
)
log = logging.getLogger(__name__)
def greet(name):
log.info("Hello, %s!", name)
with this package you can simply:
import log
def greet(name):
log.info("Hello, %s!", name)
It will produce the exact same standard library logging
records behind the scenes.
Installation
$ pip install minilog
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-1.2.3b1.tar.gz
(5.7 kB
view hashes)
Built Distribution
minilog-1.2.3b1-py3-none-any.whl
(11.8 kB
view hashes)
Close
Hashes for minilog-1.2.3b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54632dec7c5e90a7915260905e110a4a24db1d68b04de9ab9385787e1872796d |
|
MD5 | 240c9ef0a5127faebc6153c7392b946f |
|
BLAKE2b-256 | 986d23a9e99d3bd4dcec59be0200d4c0f6dd65ab047e8b04a94ca9c580437eeb |