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.5.2.tar.gz (14.1 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.5.2-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logot-1.5.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for logot-1.5.2.tar.gz
Algorithm Hash digest
SHA256 1f26ecd278aa5ca8bf7f92a1678253b1799ea0b2ba9bfbadb5ae917d1c26b6a0
MD5 77260d2674c8e057b104b6d8e7045aaf
BLAKE2b-256 47057ee2cf4bb3a0ec62ee2b4e5f394e7db295ab3777bf7d9afe82ffa68e68dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logot-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for logot-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 90cb0290ddbd9d7dfc4b15292214315542d804f843bb40ee080838e9869adb45
MD5 8dfd23d4bd5220176774c6ec9d3237c6
BLAKE2b-256 103991eeb4aa0cb7a4502a37cdbe855a30fb6108237023b08ee4443ea30b8cbd

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