:class:`LoggingTelemetry` ========================= .. py:class:: ansys.fluent.mcp.common.telemetry.LoggingTelemetry(*, level: int = logging.INFO) Bases: :py:obj:`Telemetry` Default sink that writes one JSON line per event at the INFO level. .. !! processed by numpydoc !! .. py:currentmodule:: LoggingTelemetry Overview -------- .. tab-set:: .. tab-item:: Methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~emit` - Emit a telemetry event. Import detail ------------- .. code-block:: python from ansys.fluent.mcp.common.telemetry import LoggingTelemetry Method detail ------------- .. py:method:: emit(event: str, fields: dict[str, Any]) -> None Emit a telemetry event. :Parameters: **event** : :class:`python:str` Telemetry or logging event name to record. **fields** : :class:`python:dict`\[:class:`python:str`, :obj:`Any`] Structured fields attached to the telemetry event. :Returns: :data:`python:None` The function completes through its side effects. .. !! processed by numpydoc !!