Skip to main content

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 stage 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 prints:

# 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 minimal customization. This allows you to focus on developing without distraction. If you want to customize your logs more, 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

metovlogs-0.1.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

metovlogs-0.1.6-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file metovlogs-0.1.6.tar.gz.

File metadata

  • Download URL: metovlogs-0.1.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.60.0 importlib-metadata/4.0.1 keyring/23.0.1 rfc3986/1.4.0 colorama/0.4.6 CPython/3.10.8

File hashes

Hashes for metovlogs-0.1.6.tar.gz
Algorithm Hash digest
SHA256 c7b5e2bd6004261bc3de93ea587c63d77af232b1710d5d9d36807c631239f005
MD5 4f3baeadbe145bcfa6af92bbc709011b
BLAKE2b-256 545e163e7e5be34e091a73b17722d6b451416a3493755d8a0fe37b3fa6948961

See more details on using hashes here.

File details

Details for the file metovlogs-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: metovlogs-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.60.0 importlib-metadata/4.0.1 keyring/23.0.1 rfc3986/1.4.0 colorama/0.4.6 CPython/3.10.8

File hashes

Hashes for metovlogs-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2400b49975eff7be93ccd3770b2a66caed5426a88125913632d0049d68e7d0f0
MD5 f4b2de7e4c259fc3c06999108a5a580c
BLAKE2b-256 aea8bd21862ba54a69964a229b590039e99df7748cdb105d0d2ffc1e77186041

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page