Skip to content
Permalink
Browse files

Make QgsMessageLogConsole::logMessage virtual

  • Loading branch information
Éric Lemoine
Éric Lemoine committed Sep 14, 2018
1 parent 5b808f6 commit 9eaee8f1be733d65c38070a4e7d3259cb3dbe840
@@ -136,7 +136,7 @@ Formats a log message. Used by child classes.

public slots:

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

@@ -61,7 +61,8 @@ Activates logging to stderr.

public slots:

void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
virtual void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );

%Docstring
Log a message from the server context

@@ -165,7 +165,7 @@ class CORE_EXPORT QgsMessageLogConsole : public QObject
* \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 );
virtual void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
};

#endif
@@ -76,7 +76,7 @@ class SERVER_EXPORT QgsServerLogger : public QgsMessageLogConsole
* \param tag tag of the message
* \param level log level of the message
*/
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level ) override;

protected:
QgsServerLogger();

0 comments on commit 9eaee8f

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