QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
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. | |
Public Slots inherited from QgsMessageLogConsole | |
virtual void | logMessage (const QString &message, const QString &tag, Qgis::MessageLevel level) |
Logs a message to stderr. | |
Public Member Functions | |
Qgis::MessageLevel | logLevel () const |
Gets the current log level. | |
void | setLogFile (const QString &filename=QString()) |
Set the current log file. | |
void | setLogLevel (Qgis::MessageLevel level) |
Set the current log level. | |
void | setLogStderr () |
Activates logging to stderr. | |
Public Member Functions inherited from QgsMessageLogConsole | |
QgsMessageLogConsole () | |
Constructor for QgsMessageLogConsole. | |
Static Public Member Functions | |
static QgsServerLogger * | instance () |
Gets the singleton instance. | |
Protected Member Functions | |
QgsServerLogger () | |
Protected Member Functions inherited from QgsMessageLogConsole | |
QString | formatLogMessage (const QString &message, const QString &tag, Qgis::MessageLevel level=Qgis::MessageLevel::Info) const |
Formats a log message. | |
Writes message log into server logfile.
Definition at line 34 of file qgsserverlogger.h.
|
protected |
Definition at line 32 of file qgsserverlogger.cpp.
|
static |
Gets the singleton instance.
Definition at line 23 of file qgsserverlogger.cpp.
|
inline |
|
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 37 of file qgsserverlogger.cpp.
void QgsServerLogger::setLogFile | ( | const QString & | filename = QString() | ) |
Set the current log file.
Definition at line 60 of file qgsserverlogger.cpp.
void QgsServerLogger::setLogLevel | ( | Qgis::MessageLevel | level | ) |
Set the current log level.
level | the log level |
Definition at line 55 of file qgsserverlogger.cpp.
void QgsServerLogger::setLogStderr | ( | ) |