Skip to main content

Minimalistic wrapper for Python logging.

Project description

Unix Build Status Windows Build Status
Coverage Status Scrutinizer Code Quality
PyPI Version PyPI License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
minilog-1.2.3-py3-none-any.whl (11.7 kB) Copy SHA256 hash SHA256 Wheel py3
minilog-1.2.3.tar.gz (5.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page