8using namespace stefanfrings;
10DualFileLogger::DualFileLogger(QSettings *firstSettings, QSettings* secondSettings,
const int refreshInterval, QObject* parent)
13 firstLogger=
new FileLogger(firstSettings, refreshInterval,
this);
14 secondLogger=
new FileLogger(secondSettings, refreshInterval,
this);
17void DualFileLogger::log(
const QtMsgType type,
const QString& message,
const QString &file,
const QString &function,
const int line)
19 firstLogger->
log(type,message,file,function,line);
20 secondLogger->
log(type,message,file,function,line);
25 firstLogger->
clear(buffer,variables);
26 secondLogger->
clear(buffer,variables);
virtual void clear(const bool buffer=true, const bool variables=true)
Clear the thread-local data of the current thread.
virtual void log(const QtMsgType type, const QString &message, const QString &file="", const QString &function="", const int line=0)
Decorate and log the message, if type>=minLevel.
Logger that uses a text file for output.
Decorates and writes log messages to the console, stderr.
virtual void clear(const bool buffer=true, const bool variables=true)
Clear the thread-local data of the current thread.
virtual void log(const QtMsgType type, const QString &message, const QString &file="", const QString &function="", const int line=0)
Decorate and log the message, if type>=minLevel.