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.1.tar.gz (14.2 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.1-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for logot-1.5.1.tar.gz
Algorithm Hash digest
SHA256 fbf83531e92059f3e6783850d355521da333ddee94a445aecc5867eb8a0db54f
MD5 859ad16fdbcdb12eed30c9a7f802e891
BLAKE2b-256 4eafcd1c90235d604d388116fd9dc5fa106a2feca314b426bc0b071c60ad1bb5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for logot-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a48e4c9e09ee6fd1e3f2032319b2038dc471d655fcce268b05d97d0531d21c1
MD5 3408b00b4dd18cf272cf6400e2a22076
BLAKE2b-256 634c0d17624e120c539243162fcc6d4b25506cd7eeee13fbb3fe16900059315c

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