composite_creator.h 524 B

123456789101112131415161718
  1. #pragma once
  2. #include "backend_creator.h"
  3. #include <util/generic/vector.h>
  4. class TCompositeBackendCreator : public TLogBackendCreatorBase {
  5. public:
  6. TCompositeBackendCreator();
  7. virtual bool Init(const IInitContext& ctx) override;
  8. static TFactory::TRegistrator<TCompositeBackendCreator> Registrar;
  9. protected:
  10. virtual void DoToJson(NJson::TJsonValue& value) const override;
  11. private:
  12. virtual THolder<TLogBackend> DoCreateLogBackend() const override;
  13. TVector<THolder<ILogBackendCreator>> Children;
  14. };