null_creator.h 456 B

123456789101112131415
  1. #pragma once
  2. #include "backend_creator.h"
  3. class TNullLogBackendCreator : public TLogBackendCreatorBase {
  4. public:
  5. TNullLogBackendCreator();
  6. static TFactory::TRegistrator<TNullLogBackendCreator> RegistrarNull;
  7. static TFactory::TRegistrator<TNullLogBackendCreator> RegistrarDevNull;
  8. protected:
  9. virtual void DoToJson(NJson::TJsonValue& value) const override;
  10. private:
  11. virtual THolder<TLogBackend> DoCreateLogBackend() const override;
  12. };