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

Uploaded Source

Built Distribution

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

logot-1.6.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logot-1.6.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.12.3 Linux/6.17.0-1008-azure

File hashes

Hashes for logot-1.6.0.tar.gz
Algorithm Hash digest
SHA256 e5721826acbfee4a62b75488011660297a1b7ba143015ad40e6094f211171b16
MD5 0314887ce2ee83c5f8b39c645847e50f
BLAKE2b-256 6ab97324bf66b8b17acfcdfb9bbb6eda4a9f65bbe63bf9ddc18e1be479787911

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logot-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.12.3 Linux/6.17.0-1008-azure

File hashes

Hashes for logot-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91407b4dcc5fc48bc6e39e939b3ddabd34cea9daa2896d30130e3bf6e8983efb
MD5 ede52652b1912f19823db7bde93ea053
BLAKE2b-256 5aa7716397281b0923c14603c850f902734d5a7272bdf88aab05f404a6a0d451

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