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.7.0.tar.gz (15.0 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.7.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logot-1.7.0.tar.gz
  • Upload date:
  • Size: 15.0 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.7.0.tar.gz
Algorithm Hash digest
SHA256 b917189ebe1fb2ba298014f886fa72ff85f75be8d5a48d94c138e14b4f31fbb8
MD5 90ee6b062650339f9e00b945ea6ce14d
BLAKE2b-256 7b55f0080f7c1b997166244833dac8d293d2b66e68aa250c242010b67db8f096

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logot-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 23.4 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7a8b561d22f0d08dcf3524359507d61400cb9ee61dc921b73b965c60fbab0c
MD5 182bf98d827346aec42899ee4ca08536
BLAKE2b-256 16ecc20720e6d4055dd59a37ff84ed204870e07e042cd24d97736ac6910dd190

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