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.

Source Distribution

minilog-1.2.3b1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minilog-1.2.3b1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file minilog-1.2.3b1.tar.gz.

File metadata

  • Download URL: minilog-1.2.3b1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.7.0 Darwin/18.2.0

File hashes

Hashes for minilog-1.2.3b1.tar.gz
Algorithm Hash digest
SHA256 a25e246860dfb0a01249688980e59f71d3f892b635b38cb1791c2520dfa50366
MD5 28f1c752a1c2afea2edf42203be264d9
BLAKE2b-256 d73cd8f3a9f764c22217bcedeb7527a5e4453520244eb550fe6cb51ab9d48b5c

See more details on using hashes here.

File details

Details for the file minilog-1.2.3b1-py3-none-any.whl.

File metadata

  • Download URL: minilog-1.2.3b1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.7.0 Darwin/18.2.0

File hashes

Hashes for minilog-1.2.3b1-py3-none-any.whl
Algorithm Hash digest
SHA256 54632dec7c5e90a7915260905e110a4a24db1d68b04de9ab9385787e1872796d
MD5 240c9ef0a5127faebc6153c7392b946f
BLAKE2b-256 986d23a9e99d3bd4dcec59be0200d4c0f6dd65ab047e8b04a94ca9c580437eeb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page