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.7.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metovlogs-0.1.7-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: metovlogs-0.1.7.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for metovlogs-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ff6e5a4e236e1512b290ff84a2d1da6c0d30dbcd65b199d3cf380bc6ba0aa8f2
MD5 d1de76e58c8dbf95cd7d6e3c776127e4
BLAKE2b-256 a3c34e2a1b848259e8edd0100f269182475051f5fffebec2396329ac84b9f245

See more details on using hashes here.

File details

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

File metadata

  • Download URL: metovlogs-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for metovlogs-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d330b4c7b54a230cf4fa9671524369a133704c6808f1ea7fbf3d1fc8079f996d
MD5 fa1e242396f8ce8f1b7af70db1c83770
BLAKE2b-256 71da7fdc6f0beaf7cdbbca1b62543f39a61d02fd1ca4e760d569482471d63d32

See more details on using hashes here.

Supported by

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