Dead simple Python logging.
Project description
metovlogs
Dead simple Python logging.
metovlogs is a very simple logging library. Setup is one line, then you can use it as a drop-in print
replacement. Sane and useful log format out of the box. Best for small or early projects.
Usage
Initialize the logger by calling get_log
:
import metovlogs
# The name will be used to annotate the log
# __name__ is name of the current Python module
log = metovlogs.get_log(__name__)
Now you can use it as a drop-in replacement for all your print
s:
# Do some stuff
log.info("Finished doing some stuff")
log.debug("About to start doing other stuff")
# Do some other stuff
metovlogs is like black for logs: You get reasonable behavior by default and no customization beyond that. This allows you to focus on developing without distraction. If you want to tweak your logs, you should use something else.
Installation
pip install metovlogs
Further reading
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
Built Distribution
File details
Details for the file metovlogs-0.1.0.tar.gz
.
File metadata
- Download URL: metovlogs-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d271a0978d317e4233f8fb82745b2ea9dfaa2ef078c9777b5cf6c3a174592433 |
|
MD5 | 204bd1475b4069bcbd72d26f9a13bda1 |
|
BLAKE2b-256 | 788324754d066e636691d7db64a76e57b7aab6729c9fe502e6fd78c614d0d4b6 |
File details
Details for the file metovlogs-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: metovlogs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3317b4207ec0f8b575d3ef326cc64d94831e9b1276669acb912707ca913018fe |
|
MD5 | 57b8abc7faf2e91dc3f70fb563966e89 |
|
BLAKE2b-256 | 5b7ea8bf518fd8a1da8bfa8f0a718bcbaaada8f85ab6ae09f17e6c0ffa4e7eb7 |