uninitialized_creator.h 524 B

12345678910111213141516
  1. #pragma once
  2. #include "backend_creator.h"
  3. class TLogBackendCreatorUninitialized : public ILogBackendCreator {
  4. public:
  5. void InitCustom(const TString& type, ELogPriority priority, bool threaded);
  6. virtual bool Init(const IInitContext& ctx) override;
  7. virtual void ToJson(NJson::TJsonValue& value) const override;
  8. static TFactory::TRegistrator<TLogBackendCreatorUninitialized> Registrar;
  9. private:
  10. virtual THolder<TLogBackend> DoCreateLogBackend() const override;
  11. THolder<ILogBackendCreator> Slave;
  12. };