Skip to main content

Test whether your code is logging correctly 🪵

Project description

Log-based testing 🪵

Poetry Build 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 provides first-class integrations for popular testing (e.g. pytest, unittest), asynchronous (e.g. asyncio, trio) and logging frameworks (e.g. logging, loguru). 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-0.4.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

logot-0.4.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logot-0.4.0.tar.gz
  • Upload date:
  • Size: 13.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-0.4.0.tar.gz
Algorithm Hash digest
SHA256 857020d8c1cd625395f9d36b611222ab5127f028e94fe6d7916ef0d44acae6e5
MD5 bd37da18b1060480f525b77741c05c8f
BLAKE2b-256 f357b981e31d319f2ad8eb75b7650e93b90d46901be9c3d1fd127c3c28b560e8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: logot-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 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-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ac70150443ca031a16a12b3ec083cac009e8294739ee46a9c0d78c554ad0433
MD5 20e958fef5d9a6d0b2c9ed1f36607fd0
BLAKE2b-256 831df6b5e1f7bc89fe2e85b85840cce03061edbc6aab777e62a55868fd5713ee

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