Skip to content

yangmeitaozi/minilog

 
 

Repository files navigation

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

About

Minimalistic wrapper for Python logging.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 78.7%
  • Makefile 21.3%