pyrot.logging#

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#

PyrotMessageBoxHandler

Logging handler that shows a message box for warnings and errors.

Module Contents#

class pyrot.logging.PyrotMessageBoxHandler(minimum_level: int = logging.WARNING)#

Bases: logging.StreamHandler

Logging handler that shows a message box for warnings and errors.

emit(record: logging.LogRecord) None#

Emit a log record by showing a message box.

static show_message_box(title: str, message: str, level: str) None#

Show a message box with the given title and message.