QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Writes message log into server logfile. More...
#include <qgsserverlogger.h>
Public Slots | |
void | logMessage (const QString &message, const QString &tag, Qgis::MessageLevel level) override |
Log a message from the server context. More... | |
Public Slots inherited from QgsMessageLogConsole | |
virtual void | logMessage (const QString &message, const QString &tag, Qgis::MessageLevel level) |
Logs a message to stderr. More... | |
Public Member Functions | |
Qgis::MessageLevel | logLevel () const |
Gets the current log level. More... | |
void | setLogFile (const QString &filename=QString()) |
Set the current log file. More... | |
void | setLogLevel (Qgis::MessageLevel level) |
Set the current log level. More... | |
void | setLogStderr () |
Activates logging to stderr. More... | |
Public Member Functions inherited from QgsMessageLogConsole | |
QgsMessageLogConsole () | |
Constructor for QgsMessageLogConsole. More... | |
Static Public Member Functions | |
static QgsServerLogger * | instance () |
Gets the singleton instance. More... | |
Protected Member Functions | |
QgsServerLogger () | |
Protected Member Functions inherited from QgsMessageLogConsole | |
QString | formatLogMessage (const QString &message, const QString &tag, Qgis::MessageLevel level=Qgis::Info) const |
Formats a log message. More... | |
Writes message log into server logfile.
Definition at line 35 of file qgsserverlogger.h.
|
protected |
Definition at line 31 of file qgsserverlogger.cpp.
|
static |
Gets the singleton instance.
Definition at line 22 of file qgsserverlogger.cpp.
|
inline |
Gets the current log level.
Definition at line 63 of file qgsserverlogger.h.
|
overrideslot |
Log a message from the server context.
message | the message |
tag | tag of the message |
level | log level of the message |
Definition at line 36 of file qgsserverlogger.cpp.
void QgsServerLogger::setLogFile | ( | const QString & | filename = QString() | ) |
Set the current log file.
Definition at line 59 of file qgsserverlogger.cpp.
void QgsServerLogger::setLogLevel | ( | Qgis::MessageLevel | level | ) |
Set the current log level.
level | the log level |
Definition at line 54 of file qgsserverlogger.cpp.
void QgsServerLogger::setLogStderr | ( | ) |