QgsMessageLogConsole class
Default implementation of message logging interface.
Contents
This class outputs log messages to the standard error. Therefore it might be the right choice for applications without GUI.
Constructors, destructors, conversion operators
- QgsMessageLogConsole()
- Constructor for QgsMessageLogConsole.
Public slots
-
void logMessage(const QString& message,
const QString& tag,
Qgis::
MessageLevel level) virtual - Logs a message to stderr.
Protected functions
-
auto formatLogMessage(const QString& message,
const QString& tag,
Qgis::
MessageLevel level = Qgis:: Info) const -> QString - Formats a log message.
Function documentation
void QgsMessageLogConsole:: logMessage(const QString& message,
const QString& tag,
Qgis:: MessageLevel level) virtual public slot
Logs a message to stderr.
| Parameters | |
|---|---|
| message | the message to format |
| tag | the tag of the message |
| level | the log level of the message |
QString QgsMessageLogConsole:: formatLogMessage(const QString& message,
const QString& tag,
Qgis:: MessageLevel level = Qgis:: Info) const protected
Formats a log message.
| Parameters | |
|---|---|
| message | the message to format |
| tag | the tag of the message |
| level | the log level of the message |
Used by child classes.