Minimalistic wrapper for Python logging.
Project description
minilog
A minimalistic logging wrapper for Python.
Usage
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
Install this library directly into an activated virtual environment:
$ pip install minilog
or add it to your Poetry project:
$ poetry add minilog
Documentation
To view additional options, please consult the full documentation.
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.5b1.tar.gz
(6.7 kB
view hashes)