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 (e.g. pytest
, unittest
), asynchronous (e.g. asyncio
, trio
) and logging frameworks (e.g. logging
, loguru
, structlog
). It can be extended to support many others. ๐ช
Full documentation is published on Read the Docs.
Issue tracking is hosted on GitHub.
Release notes are published on GitHub.
logot
is published as open-source software under the MIT license.