file_creator.h 513 B

1234567891011121314151617
  1. #pragma once
  2. #include "backend_creator.h"
  3. class TFileLogBackendCreator : public TLogBackendCreatorBase {
  4. public:
  5. TFileLogBackendCreator(const TString& path = TString(), const TString& type = "file");
  6. virtual bool Init(const IInitContext& ctx) override;
  7. static TFactory::TRegistrator<TFileLogBackendCreator> Registrar;
  8. protected:
  9. virtual void DoToJson(NJson::TJsonValue& value) const override;
  10. TString Path;
  11. private:
  12. virtual THolder<TLogBackend> DoCreateLogBackend() const override;
  13. };