some fixes [multithreading,..]
needed interface changes [new options] logger for android wifi-ap-optimization new test-cases
This commit is contained in:
30
misc/log/LoggerComposite.h
Normal file
30
misc/log/LoggerComposite.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef LOGGERCOMPOSITE_H
|
||||
#define LOGGERCOMPOSITE_H
|
||||
|
||||
|
||||
#include "Logger.h"
|
||||
#include <vector>
|
||||
|
||||
class LoggerComposite : public Logger {
|
||||
|
||||
private:
|
||||
|
||||
/** all contained loggers */
|
||||
std::vector<Logger*> loggers;
|
||||
|
||||
public:
|
||||
|
||||
/** add a new logger to this composite */
|
||||
void addLogger(Logger* l) {
|
||||
loggers.push_back(l);
|
||||
}
|
||||
|
||||
virtual void add(const std::string& str, const bool nl) override {
|
||||
for (Logger* l : loggers) {l->add(str, nl);}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // LOGGERCOMPOSITE_H
|
||||
Reference in New Issue
Block a user