Repository navigation
Tags
Tags
Add support for newer versions of `python`, `structlog` and `trio` (#362 ) ### Newly supported library versions - **Added:** `structlog` 26.1 - **Added:** `trio` 0.34 and 0.35 - **Dropped:** `trio` 0.22 ### Python versions - **Added:** Python 3.15 (now in the CI matrix) - **Dropped:** Python 3.10. `requires-python` is now `^3.11`.
Added support for wildcard messages and levels (#275) Closes #219 The special ``...`` (ellipsis) acts as a wildcard when matching log messages. Use ``...`` to match log records with *any* message: ```py from logot import Logot, logged def test_something(logot: Logot) -> None: do_something() logot.assert_logged(logged.info(...)) ``` Or use ``...`` to match log records with *any* level: ```py from logot import Logot, logged def test_something(logot: Logot) -> None: do_something() logot.assert_logged(logged.log(..., "Something %s done")) ```
PreviousNext