QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
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.
 

Public Member Functions

 QgsMessageLogConsole ()
 Constructor for QgsMessageLogConsole.
 

Protected Member Functions

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

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 137 of file qgsmessagelog.h.

Constructor & Destructor Documentation

◆ QgsMessageLogConsole()

QgsMessageLogConsole::QgsMessageLogConsole ( )

Constructor for QgsMessageLogConsole.

Definition at line 55 of file qgsmessagelog.cpp.

Member Function Documentation

◆ formatLogMessage()

QString QgsMessageLogConsole::formatLogMessage ( const QString &  message,
const QString &  tag,
Qgis::MessageLevel  level = Qgis::MessageLevel::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 69 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 62 of file qgsmessagelog.cpp.


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