QGIS API Documentation  3.0.2-Girona (307d082)
Signals | Public Member Functions | Static Public Member Functions | List of all members
QgsMessageLog Class Reference

Interface for logging messages from QGIS in GUI independent way. More...

#include <qgsmessagelog.h>

Inheritance diagram for QgsMessageLog:
Inheritance graph
[legend]

Signals

void messageReceived (const QString &message, const QString &tag, Qgis::MessageLevel level)
 
void messageReceived (bool received)
 

Public Member Functions

 QgsMessageLog ()=default
 Constructor for QgsMessageLog. More...
 

Static Public Member Functions

static void logMessage (const QString &message, const QString &tag=QString(), Qgis::MessageLevel level=Qgis::Warning)
 add a message to the instance (and create it if necessary) More...
 

Detailed Description

Interface for logging messages from QGIS in GUI independent way.

This class provides abstraction of a tabbed window for showing messages to the user. By default QgsMessageLogOutput will be used if not overridden with another message log creator function.

QGIS application uses QgsMessageLog class for logging messages in a dockable window for the user.

QgsMessageLog is not usually directly created, but rather accessed through QgsApplication::messageLog().

Definition at line 38 of file qgsmessagelog.h.

Constructor & Destructor Documentation

◆ QgsMessageLog()

QgsMessageLog::QgsMessageLog ( )
default

Constructor for QgsMessageLog.

Member Function Documentation

◆ logMessage()

void QgsMessageLog::logMessage ( const QString &  message,
const QString &  tag = QString(),
Qgis::MessageLevel  level = Qgis::Warning 
)
static

add a message to the instance (and create it if necessary)

Definition at line 25 of file qgsmessagelog.cpp.

◆ messageReceived [1/2]

void QgsMessageLog::messageReceived ( const QString &  message,
const QString &  tag,
Qgis::MessageLevel  level 
)
signal

◆ messageReceived [2/2]

void QgsMessageLog::messageReceived ( bool  received)
signal

The documentation for this class was generated from the following files: