Class: QgsMessageLogViewer¶
A generic dialog widget for displaying QGIS log messages.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Methods
Logs a message to the viewer. |
|
Activates the tab whose title matches the given tag, if any. |
- class qgis.gui.QgsMessageLogViewer[source]¶
Bases:
QDialog- __init__(parent: QWidget | None = None, fl: Qt.WindowType = QgsGuiUtils.ModalDialogFlags)
Create a new message log viewer. The viewer will automatically connect to the system’s
QgsApplication.messageLog()instance.- Parameters:
parent (Optional[QWidget] = None)
fl (Qt.WindowType = QgsGuiUtils.ModalDialogFlags)
- logMessage(self, message: str | None, tag: str | None, level: Qgis.MessageLevel, format: Qgis.StringFormat = Qgis.StringFormat.PlainText)[source]¶
Logs a
messageto the viewer.The
formatparameter specifies the message format (since QGIS 4.0)- Parameters:
message (Optional[str])
tag (Optional[str])
level (Qgis.MessageLevel)
format (Qgis.StringFormat = Qgis.StringFormat.PlainText)