SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
dualfilelogger.cpp
Go to the documentation of this file.
1 
6 #include "dualfilelogger.h"
7 
8 using namespace qtwebapp;
9 
10 DualFileLogger::DualFileLogger(QSettings* firstSettings, QSettings* secondSettings, const int refreshInterval, QObject* parent)
11  :Logger(parent)
12 {
13  firstLogger=new FileLogger(firstSettings, refreshInterval, this);
14  secondLogger=new FileLogger(secondSettings, refreshInterval, this);
15 }
16 
17 void DualFileLogger::log(const QtMsgType type, const QString& message, const QString &file, const QString &function, const int line)
18 {
19  firstLogger->log(type,message,file,function,line);
20  secondLogger->log(type,message,file,function,line);
21 }
22 
23 void DualFileLogger::clear(const bool buffer, const bool variables)
24 {
25  firstLogger->clear(buffer,variables);
26  secondLogger->clear(buffer,variables);
27 }
virtual void log(const QtMsgType type, const QString &message, const QString &file="", const QString &function="", const int line=0)
Definition: logger.cpp:153
virtual void clear(const bool buffer=true, const bool variables=true)
Definition: logger.cpp:134
virtual void log(const QtMsgType type, const QString &message, const QString &file="", const QString &function="", const int line=0)
virtual void clear(const bool buffer=true, const bool variables=true)
DualFileLogger(QSettings *firstSettings, QSettings *secondSettings, const int refreshInterval=10000, QObject *parent=0)