QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
QgsServerLogger Class Reference

Writes message log into server logfile. More...

#include <qgsserverlogger.h>

Inheritance diagram for QgsServerLogger:
Inheritance graph
[legend]

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 QgsServerLoggerinstance ()
 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...
 

Detailed Description

Writes message log into server logfile.

Since
QGIS 2.8

Definition at line 35 of file qgsserverlogger.h.

Constructor & Destructor Documentation

QgsServerLogger::QgsServerLogger ( )
protected

Definition at line 38 of file qgsserverlogger.cpp.

Member Function Documentation

QgsServerLogger * QgsServerLogger::instance ( )
static

Gets the singleton instance.

Definition at line 29 of file qgsserverlogger.cpp.

Qgis::MessageLevel QgsServerLogger::logLevel ( ) const
inline

Gets the current log level.

Returns
the log level
Since
QGIS 3.0

Definition at line 50 of file qgsserverlogger.h.

void QgsServerLogger::logMessage ( const QString &  message,
const QString &  tag,
Qgis::MessageLevel  level 
)
overrideslot

Log a message from the server context.

Parameters
messagethe message
tagtag of the message
levellog level of the message

Definition at line 43 of file qgsserverlogger.cpp.

void QgsServerLogger::setLogFile ( const QString &  filename = QString())

Set the current log file.

Definition at line 66 of file qgsserverlogger.cpp.

void QgsServerLogger::setLogLevel ( Qgis::MessageLevel  level)

Set the current log level.

Parameters
levelthe log level
Since
QGIS 3.0

Definition at line 61 of file qgsserverlogger.cpp.

void QgsServerLogger::setLogStderr ( )

Activates logging to stderr.

Since
QGIS 3.4.

Definition at line 78 of file qgsserverlogger.cpp.


The documentation for this class was generated from the following files: