63 #include <QStringList>
73 pluginName_(_pluginName),
74 defaultLogType_(_type)
87 strings = _message.split(
"\n",QString::SkipEmptyParts);
88 for (
int i = 0 ; i < strings.size(); ++i )
98 strings = _message.split(
"\n",QString::SkipEmptyParts);
99 for (
int i = 0 ; i < strings.size(); ++i )
~PluginLogger()
Destructor.
Logtype
Log types for Message Window.
QString pluginName_
prepend this name to all output messages
void operator<<(const std::string &_s)
Provide operator for streaming.
void slotLog(Logtype _type, QString _message)
Log messages with a given Logtype.
void log(Logtype, QString)
Sends the generated logs to the core.
Logtype defaultLogType_
Default logtype ( used for streams )
PluginLogger(QString _pluginName, Logtype _type=LOGOUT)
Standard Constructor.