MCPcopy Create free account
hub / github.com/hynek/structlog / ainfo

Method ainfo

src/structlog/stdlib.py:481–487  ·  view source on GitHub ↗

Log using `info()`, but asynchronously in a separate thread. .. versionadded:: 23.1.0

(self, event: str, *args: Any, **kw: Any)

Source from the content-addressed store, hash-verified

479 await self._dispatch_to_sync(self.debug, event, args, kw)
480
481 async def ainfo(self, event: str, *args: Any, **kw: Any) -> None:
482 """
483 Log using `info()`, but asynchronously in a separate thread.
484
485 .. versionadded:: 23.1.0
486 """
487 await self._dispatch_to_sync(self.info, event, args, kw)
488
489 async def awarning(self, event: str, *args: Any, **kw: Any) -> None:
490 """

Callers 6

test_async_no_argsMethod · 0.45
test_async_pos_argsMethod · 0.45
typecheck_stdlib_asyncFunction · 0.45

Calls 1

_dispatch_to_syncMethod · 0.95

Tested by 4

test_async_no_argsMethod · 0.36
test_async_pos_argsMethod · 0.36