Subgroup: Server

Class: QgsServerLogger

class qgis.server.QgsServerLogger

Bases: qgis._core.QgsMessageLogConsole

Writes message log into server logfile

New in version 2.8: Methods

childEvent
connectNotify
customEvent
disconnectNotify
formatLogMessage
instance Gets the singleton instance
isSignalConnected
logLevel Gets the current log level
logMessage Log a message from the server context
receivers
sender
senderSignalIndex
setLogFile Set the current log file
setLogLevel Set the current log level
setLogStderr Activates logging to stderr.
timerEvent

Signals

Attributes

childEvent()
connectNotify()
customEvent()
disconnectNotify()
formatLogMessage()
instance() → QgsServerLogger

Gets the singleton instance

isSignalConnected()
logLevel(self) → Qgis.MessageLevel

Gets the current log level

Returns:the log level

New in version 3.0.

logMessage(self, message: str, tag: str, level: Qgis.MessageLevel)

Log a message from the server context

Parameters:
  • message – the message
  • tag – tag of the message
  • level – log level of the message
receivers()
sender()
senderSignalIndex()
setLogFile(self, filename: str = '')

Set the current log file

setLogLevel(self, level: Qgis.MessageLevel)

Set the current log level

Parameters:level – the log level

New in version 3.0.

setLogStderr(self)

Activates logging to stderr.

New in version 3.4..

timerEvent()