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.5.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

metovlogs-0.1.5-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

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