QGIS API Documentation  3.8.0-Zanzibar (11aff65)
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QgsMessageLogConsole Class Reference

Default implementation of message logging interface. More...

#include <qgsmessagelog.h>

Inheritance diagram for QgsMessageLogConsole:
Inheritance graph
[legend]

Public Slots

virtual void logMessage (const QString &message, const QString &tag, Qgis::MessageLevel level)
 Logs a message to stderr. More...
 

Public Member Functions

 QgsMessageLogConsole ()
 Constructor for QgsMessageLogConsole. More...
 

Protected Member Functions

QString formatLogMessage (const QString &message, const QString &tag, Qgis::MessageLevel level=Qgis::Info) const
 Formats a log message. More...
 

Detailed Description

Default implementation of message logging interface.

This class outputs log messages to the standard error. Therefore it might be the right choice for applications without GUI.

Definition at line 136 of file qgsmessagelog.h.

Constructor & Destructor Documentation

◆ QgsMessageLogConsole()

QgsMessageLogConsole::QgsMessageLogConsole ( )

Constructor for QgsMessageLogConsole.

Definition at line 43 of file qgsmessagelog.cpp.

Member Function Documentation

◆ formatLogMessage()

QString QgsMessageLogConsole::formatLogMessage ( const QString &  message,
const QString &  tag,
Qgis::MessageLevel  level = Qgis::Info 
) const
protected

Formats a log message.

Used by child classes.

Parameters
messagethe message to format
tagthe tag of the message
levelthe log level of the message
Since
QGIS 3.4

Definition at line 57 of file qgsmessagelog.cpp.

◆ logMessage

void QgsMessageLogConsole::logMessage ( const QString &  message,
const QString &  tag,
Qgis::MessageLevel  level 
)
virtualslot

Logs a message to stderr.

Parameters
messagethe message to format
tagthe tag of the message
levelthe log level of the message

Definition at line 50 of file qgsmessagelog.cpp.


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