This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/misc/log/LoggerComposite.h
kazu 4f511d907e some fixes [multithreading,..]
needed interface changes [new options]
logger for android
wifi-ap-optimization
new test-cases
2016-09-28 12:19:14 +02:00

31 lines
468 B
C++

#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