16 #ifndef QGSMESSAGELOG_H
17 #define QGSMESSAGELOG_H
22 #include "qgis_core.h"
57 static void logMessage(
const QString &message,
const QString &tag = QString(),
Qgis::MessageLevel level = Qgis::MessageLevel::Warning,
bool notifyUser =
true );
83 void emitMessage(
const QString &message,
const QString &tag,
Qgis::MessageLevel level,
bool notifyUser =
true );
85 int mAdviseBlockCount = 0;
158 QString formatLogMessage(
const QString &message,
const QString &tag,
Qgis::MessageLevel level = Qgis::MessageLevel::Info )
const;
169 virtual void logMessage(
const QString &message,
const QString &tag,
Qgis::MessageLevel level );
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Default implementation of message logging interface.
Temporarily blocks the application QgsMessageLog (see QgsApplication::messageLog()) from emitting the...
QgsMessageLogNotifyBlocker(const QgsMessageLogNotifyBlocker &other)=delete
QgsMessageLogNotifyBlocker cannot be copied.
QgsMessageLogNotifyBlocker & operator=(const QgsMessageLogNotifyBlocker &other)=delete
QgsMessageLogNotifyBlocker cannot be copied.
Interface for logging messages from QGIS in GUI independent way.
void messageReceived(const QString &message, const QString &tag, Qgis::MessageLevel level)
Emitted whenever the log receives a message.
void messageReceived(bool received)
Emitted whenever the log receives a message which is not a Qgis::MessageLevel::Info level message and...
QgsMessageLog()=default
Constructor for QgsMessageLog.