backend_creator.h 617 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "backend.h"
  3. #include <library/cpp/logger/backend_creator.h>
  4. namespace NUnifiedAgent {
  5. class TLogBackendCreator: public TLogBackendCreatorBase {
  6. public:
  7. TLogBackendCreator();
  8. bool Init(const IInitContext& ctx) override;
  9. static TFactory::TRegistrator<TLogBackendCreator> Registrar;
  10. protected:
  11. void DoToJson(NJson::TJsonValue& value) const override;
  12. private:
  13. THolder<TLogBackend> DoCreateLogBackend() const override;
  14. private:
  15. THolder<TClientParameters> ClientParams;
  16. THolder<ILogBackendCreator> OwnLogger;
  17. };
  18. }