56#include "PluginLogging.hh"
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 )
Logtype
Log types for Message Window.
void log(Logtype, QString)
Sends the generated logs to the core.
void operator<<(const std::string &_s)
Provide operator for streaming.
PluginLogger(const QString &_pluginName, Logtype _type=LOGOUT)
Standard Constructor.
QString pluginName_
prepend this name to all output messages
void slotLog(Logtype _type, QString _message)
Log messages with a given Logtype.
~PluginLogger()
Destructor.
Logtype defaultLogType_
Default logtype ( used for streams )