Skip to main content

minilog

A minimalistic logging wrapper for Python.

Linux Build Windows Build Code Coverage Scrutinizer Code Quality PyPI License PyPI Version PyPI Downloads

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

log = logging.getLogger(__name__)

def greet(name):
    log.info("Hello, %s!", name)

if __name__ == "__main__":
    logging.basicConfig(
        level=logging.INFO,
        format="%(levelname)s: %(name)s: %(message)s",
    )

with this package you can simply:

import log

def greet(name):
    log.info("Hello, %s!", name)

if __name__ == "__main__":
    log.init()

It will produce the exact same standard library logging records behind the scenes with automatic formatting for non-strings.

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.

Metadata

Release files for minilog 2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minilog 2.4
File Size Uploaded
minilog-2.4.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for minilog 2.4
File Interpreter ABI Platform
minilog-2.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / minilog-2.4.tar.gz

Download URL minilog-2.4.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c2e8508f90a47757fff7e60a0ebfcb3e92bfbac9298f2a2fd890a75b3b502d3e
BLAKE2b-256 checksum
How to use checksums
6833c5f94367c6d1ecd9dd46dfca915aeb562f68bad1cb65ef3e324f80394ec4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.15.0 Darwin/24.6.0

Release files / minilog-2.4-py3-none-any.whl

Download URL minilog-2.4-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed59cfa7519a42a95457890a41aeb8ddd1c5d6780b94e39a9862fe61f65c4dec
BLAKE2b-256 checksum
How to use checksums
8934ccde017b36838f996ce26fc7edf4f98fc50210f44fd0988fa3aa3a70c1d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.15.0 Darwin/24.6.0

Release history Release notifications | RSS feed

This release

2.4 This release

2 release files

2.3.1

2 release files

2.3

2 release files

2.2

2 release files

2.1

2 release files

2.0.1

2 release files

2.0

2 release files

1.6

2 release files

1.5

2 release files

1.4.1

2 release files

1.4

2 release files

1.3

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

0.5

2 release files

0.4

2 release files

0.3.1

2 release files

0.3

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page