Class: QgsMessageLogNotifyBlocker¶
Temporarily blocks the application QgsMessageLog
(see
QgsApplication.messageLog()
) from emitting the
messageReceived( bool ) signal for the lifetime of the object.
Using this blocker allows messages to be logged without causing user interface hints flagging message log errors to be created.
QgsMessageLogNotifyBlocker
supports “stacked” blocking, so
two QgsMessageLogNotifyBlocker
created will both need to be
destroyed before the messageReceived( bool ) signal is emitted again.
Added in version 3.2.