text: Title: Add support for async functions to @capture_logging
  Body: `@capture_logging` won't work for async functions, but it should be possible to make it do so. `pytest-asyncio` for example allows async methods to be run as tests.