system_creator.h 562 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "backend_creator.h"
  3. #include "system.h"
  4. class TSysLogBackendCreator : public TLogBackendCreatorBase {
  5. public:
  6. TSysLogBackendCreator();
  7. virtual bool Init(const IInitContext& ctx) override;
  8. static TFactory::TRegistrator<TSysLogBackendCreator> Registrar;
  9. protected:
  10. virtual void DoToJson(NJson::TJsonValue& value) const override;
  11. private:
  12. virtual THolder<TLogBackend> DoCreateLogBackend() const override;
  13. TString Ident;
  14. TSysLogBackend::EFacility Facility = TSysLogBackend::TSYSLOG_LOCAL0;
  15. int Flags = 0;
  16. };