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 | |
|---|---|---|---|
| minilog-2.4.tar.gz | 6.2 kB | 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
|