Skip to main content

Test whether your code is logging correctly 🪵

Project description

Log-based testing 🪵

Poetry Build Codecov Docs PyPI version Supported Python versions

logot makes it easy to test whether your code is logging correctly:

from logot import Logot, logged

def test_something(logot: Logot) -> None:
    do_something()
    logot.assert_logged(logged.info("Something was done"))

logot integrates with popular testing frameworks (e.g. pytest, unittest). It supports many 3rd-party asynchronous and logging frameworks, and can be extended to support many more. 💪

Documentation 📖

Full documentation is published on Read the Docs. Learn more about logot with the following guides:

Bugs / feedback 🐛

Issue tracking is hosted on GitHub.

Changelog 🏗️

Release notes are published on GitHub.

License ⚖️

logot is published as open-source software under the MIT license.

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

logot-1.3.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

logot-1.3.0-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file logot-1.3.0.tar.gz.

File metadata

  • Download URL: logot-1.3.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1016-azure

File hashes

Hashes for logot-1.3.0.tar.gz
Algorithm Hash digest
SHA256 de392d182308828a0a9a442120e25e4ad2258fef52c4ed275e012aaffb0514a5
MD5 ddb890be06f582f7860275797a064174
BLAKE2b-256 36902c45c5aba12a221004f3fc8e26f80cfc3612a60236c47bb8dfe16952522e

See more details on using hashes here.

Provenance

File details

Details for the file logot-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: logot-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1016-azure

File hashes

Hashes for logot-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb2e8cf8ca949015e1e096e45023095ebd5df06ea4627f5df47d53dcdf62b74e
MD5 7fa236873eaf66384a7b3486df742689
BLAKE2b-256 a8aa8369bea2895d72021cbe65612bba07b6a11861460dab6dbf05e8f5e211d6

See more details on using hashes here.

Provenance

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