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
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| minilog-2.4.tar.gz | 6.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for minilog 2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.