Skip to content
Permalink
Browse files

Add docs for more QgsMessageLogConsole methods

  • Loading branch information
Éric Lemoine
Éric Lemoine committed Sep 11, 2018
1 parent 212a74c commit 504657ed515fda0873f99bd0b5535fd26e2592c8
Showing with 24 additions and 0 deletions.
  1. +12 −0 python/core/auto_generated/qgsmessagelog.sip.in
  2. +12 −0 src/core/qgsmessagelog.h
@@ -115,7 +115,11 @@ be the right choice for apps without GUI.
#include "qgsmessagelog.h"
%End
public:

QgsMessageLogConsole();
%Docstring
Constructor for QgsMessageLogConsole.
%End

protected:

@@ -129,7 +133,15 @@ Format a log message. Used by child classes.
%End

public slots:

void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
%Docstring
Log a message to stderr.

:param message: the message to format
:param tag: the tag of the message
:param level: the log level of the message
%End
};

/************************************************************************
@@ -138,6 +138,10 @@ class CORE_EXPORT QgsMessageLogConsole : public QObject
Q_OBJECT

public:

/**
* Constructor for QgsMessageLogConsole.
*/
QgsMessageLogConsole();

protected:
@@ -152,6 +156,14 @@ class CORE_EXPORT QgsMessageLogConsole : public QObject
QString formatLogMessage( const QString &message, const QString &tag, Qgis::MessageLevel level = Qgis::Info ) const;

public slots:

/**
* Log a message to stderr.
*
* \param message the message to format
* \param tag the tag of the message
* \param level the log level of the message
*/
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
};

0 comments on commit 504657e

Please sign in to comment.
You can’t perform that action at this time.