composite.h 445 B

123456789101112131415
  1. #pragma once
  2. #include "backend.h"
  3. #include <util/generic/vector.h>
  4. class TCompositeLogBackend: public TLogBackend {
  5. public:
  6. virtual void WriteData(const TLogRecord& rec) override;
  7. virtual void ReopenLog() override;
  8. virtual void AddLogBackend(THolder<TLogBackend>&& backend);
  9. private:
  10. TVector<THolder<TLogBackend>> Slaves;
  11. ELogPriority LogPriority = static_cast<ELogPriority>(0); // has now it's own priority by default
  12. };