56 #include "PluginLogging.hh" 57 #include <QStringList> 67 pluginName_(_pluginName),
68 defaultLogType_(_type)
81 #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) 82 strings = _message.split(
"\n",QString::SkipEmptyParts);
84 strings = _message.split(
"\n",Qt::SkipEmptyParts);
87 for (
int i = 0 ; i < strings.size(); ++i )
97 #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) 98 strings = _message.split(
"\n",QString::SkipEmptyParts);
100 strings = _message.split(
"\n",Qt::SkipEmptyParts);
103 for (
int i = 0 ; i < strings.size(); ++i )
void log(Logtype, QString)
Sends the generated logs to the core.
Logtype defaultLogType_
Default logtype ( used for streams )
void operator<<(const std::string &_s)
Provide operator for streaming.
void slotLog(Logtype _type, QString _message)
Log messages with a given Logtype.
Logtype
Log types for Message Window.
~PluginLogger()
Destructor.
PluginLogger(QString _pluginName, Logtype _type=LOGOUT)
Standard Constructor.
QString pluginName_
prepend this name to all output messages