pyrot.logging ============= .. py:module:: pyrot.logging .. autoapi-nested-parse:: Logging helpers for Pyrot. Provides a custom logging handler that displays messages in a message box, to make sure that important warnings and errors are noticed by the user. Classes ------- .. autoapisummary:: pyrot.logging.PyrotMessageBoxHandler Module Contents --------------- .. py:class:: PyrotMessageBoxHandler(minimum_level: int = logging.WARNING) Bases: :py:obj:`logging.StreamHandler` Logging handler that shows a message box for warnings and errors. .. py:method:: emit(record: logging.LogRecord) -> None Emit a log record by showing a message box. .. py:method:: show_message_box(title: str, message: str, level: str) -> None :staticmethod: Show a message box with the given title and message.