Class: QgsMessageLogConsole

class qgis.core.QgsMessageLogConsole

Bases: PyQt5.QtCore.QObject

Constructor for QgsMessageLogConsole.

Default implementation of message logging interface

This class outputs log messages to the standard error. Therefore it might be the right choice for applications without GUI.

Enums

Methods

childEvent
connectNotify
customEvent
disconnectNotify
formatLogMessage Formats a log message.
isSignalConnected
logMessage Logs a message to stderr.
receivers
sender
senderSignalIndex
timerEvent

Signals

Attributes

childEvent()
connectNotify()
customEvent()
disconnectNotify()
formatLogMessage(self, message: str, tag: str, level: Qgis.MessageLevel = Qgis.Info) → str

Formats a log message. Used by child classes.

Parameters:
  • message – the message to format
  • tag – the tag of the message
  • level – the log level of the message

New in version 3.4.

isSignalConnected()
logMessage(self, message: str, tag: str, level: Qgis.MessageLevel)

Logs a message to stderr.

Parameters:
  • message – the message to format
  • tag – the tag of the message
  • level – the log level of the message
receivers()
sender()
senderSignalIndex()
timerEvent()