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 (e.g. pytest, unittest), asynchronous (e.g. asyncio, trio) and logging frameworks (e.g. logging, loguru, structlog). It can be extended to support many others. 💪

Documentation 📖

Full documentation is published on Read the Docs.

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

Uploaded Source

Built Distribution

logot-1.1.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logot-1.1.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure

File hashes

Hashes for logot-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d2037ee87906704fd708ee3db13b440d5e419b127a49936ad8a744a976f5f9da
MD5 fa9550f67c497e34c9e8a8d37eff7d98
BLAKE2b-256 002c65e804f9d6419554054cf21ae72e113bacbfb9874e48861b7248948c07ec

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: logot-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure

File hashes

Hashes for logot-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33a7b3ba99a0f854eb92224fea2e2bb0416002e5e2de52dd17d2013376646ae6
MD5 d30cb292ca9502196dcbd4e1f6703054
BLAKE2b-256 f35aac9d4262291f70d1726c0c400285fcdf2d746c6e771c1127b46a548d8feb

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