Skip to content

Commit

Permalink
Add docs for more QgsMessageLogConsole methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Éric Lemoine committed Sep 11, 2018
1 parent 212a74c commit 504657e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions python/core/auto_generated/qgsmessagelog.sip.in
Expand Up @@ -115,7 +115,11 @@ be the right choice for apps without GUI.
#include "qgsmessagelog.h"
%End
public:

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

protected:

Expand All @@ -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
};

/************************************************************************
Expand Down
12 changes: 12 additions & 0 deletions src/core/qgsmessagelog.h
Expand Up @@ -138,6 +138,10 @@ class CORE_EXPORT QgsMessageLogConsole : public QObject
Q_OBJECT

public:

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

protected:
Expand All @@ -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 );
};

Expand Down

0 comments on commit 504657e

Please sign in to comment.