QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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>

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)

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.

Member Enumeration Documentation

Enumerator:
INFO 
WARNING 
CRITICAL 

Member Function Documentation

QgsMessageLog * QgsMessageLog::instance ( )
static
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)

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

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