Skip to content

Commit

Permalink
Improve qgsmessagelog doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Éric Lemoine committed Sep 13, 2018
1 parent 3443102 commit b16aa15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions python/core/auto_generated/qgsmessagelog.sip.in
Expand Up @@ -108,7 +108,7 @@ class QgsMessageLogConsole : QObject
Default implementation of message logging interface

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

%TypeHeaderCode
Expand All @@ -125,18 +125,20 @@ Constructor for QgsMessageLogConsole.

QString formatLogMessage( const QString &message, const QString &tag, Qgis::MessageLevel level = Qgis::Info ) const;
%Docstring
Format a log message. Used by child classes.
Formats a log message. Used by child classes.

:param message: the message to format
:param tag: the tag of the message
:param level: the log level of the message

.. versionadded:: 3.4
%End

public slots:

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

:param message: the message to format
:param tag: the tag of the message
Expand Down
7 changes: 4 additions & 3 deletions src/core/qgsmessagelog.h
Expand Up @@ -131,7 +131,7 @@ class CORE_EXPORT QgsMessageLogNotifyBlocker
* \brief Default implementation of message logging interface
*
* This class outputs log messages to the standard error. Therefore it might
* be the right choice for apps without GUI.
* be the right choice for applications without GUI.
*/
class CORE_EXPORT QgsMessageLogConsole : public QObject
{
Expand All @@ -147,18 +147,19 @@ class CORE_EXPORT QgsMessageLogConsole : public QObject
protected:

/**
* Format a log message. Used by child classes.
* Formats a log message. Used by child classes.
*
* \param message the message to format
* \param tag the tag of the message
* \param level the log level of the message
* \since QGIS 3.4
*/
QString formatLogMessage( const QString &message, const QString &tag, Qgis::MessageLevel level = Qgis::Info ) const;

public slots:

/**
* Log a message to stderr.
* Logs a message to stderr.
*
* \param message the message to format
* \param tag the tag of the message
Expand Down

0 comments on commit b16aa15

Please sign in to comment.