QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Signals | 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]

Public Types

enum  MessageLevel { INFO = 0, WARNING = 1, CRITICAL = 2 }
 

Signals

void messageReceived (QString message, QString tag, QgsMessageLog::MessageLevel level)
 

Static Public Member Functions

static QgsMessageLoginstance ()
 
static void logMessage (QString message, QString tag=QString::null, MessageLevel level=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.

Definition at line 31 of file qgsmessagelog.h.

Member Function Documentation

QgsMessageLog * QgsMessageLog::instance ( )
static

Definition at line 32 of file qgsmessagelog.cpp.

void QgsMessageLog::logMessage ( QString  message,
QString  tag = QString::null,
QgsMessageLog::MessageLevel  level = WARNING 
)
static

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

Definition at line 43 of file qgsmessagelog.cpp.

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

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