QGIS API Documentation 3.41.0-Master (3440c17df1d)
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 131 of file qgsmessagelog.h.

Constructor & Destructor Documentation

◆ QgsMessageLogConsole()

QgsMessageLogConsole::QgsMessageLogConsole ( )

Constructor for QgsMessageLogConsole.

Definition at line 56 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 70 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 63 of file qgsmessagelog.cpp.


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