Workspace 6.21.5
|
Implementation of the LogManager that supports logging from a single thread only. More...
#include <Workspace/Application/logmanagerimplunthreaded.h>
Inherits LogManagerImpl.
Public Types | |
using | FilterSet = QSet< DataExecution::LogStreamFilter > |
Public Member Functions | |
LogManagerImplUnthreaded () | |
~LogManagerImplUnthreaded () override | |
void | addStream (DataExecution::LogStream &logStream) override |
bool | filterMessage (const QString &msg, const QString &category, const QThread *currThread, const QThread *parentThread) override |
void | flush () override |
void | flushAsync () override |
QList< const DataExecution::LogStream * > | getStreams () const override |
bool | installFilter (const DataExecution::LogStreamFilter &filter) override |
void | logText (const QString &msg, const QString &category) override |
void | logTextAsync (const QString &msg, const QString &category) override |
bool | removeFilter (const DataExecution::LogStreamFilter &filter) override |
bool | removeStream (DataExecution::LogStream &logStream) override |
Public Attributes | |
FilterSet | filters_ |
This is the implementation of the LogManager that will be used if being used in an application that does not involve a QCoreApplication. It is needed to avoid situations where the logging thread is not shut down properly because it was killed before events were fully processed. The LogManagerImplThreaded is able to handle this, but only if a QCoreApplication exists. We therefore detect the non-existence of the QCoreApplication (in LogManager) and instantiate this class instead.
using FilterSet = QSet<DataExecution::LogStreamFilter> |
|
overridedefault |
|
override |
|
override |
|
override |
Flush the log (synchronously).
|
override |
Flush the log (asynchronously).
|
override |
Retrieves all streams
|
override |
filter | The filter to install |
Installs a message filter.
|
override |
Synchronous version of the logText function.
|
override |
Asynchronous version of the logText function.
|
override |
|
override |
Removes a stream (synchronously).
FilterSet filters_ |