12345678910111213141516171819202122232425262728 |
- #pragma once
- #include "backend_creator.h"
- class TCerrLogBackendCreator : public TLogBackendCreatorBase {
- public:
- TCerrLogBackendCreator();
- static TFactory::TRegistrator<TCerrLogBackendCreator> RegistrarCerr;
- static TFactory::TRegistrator<TCerrLogBackendCreator> RegistrarConsole;
- protected:
- virtual void DoToJson(NJson::TJsonValue& value) const override;
- private:
- virtual THolder<TLogBackend> DoCreateLogBackend() const override;
- };
- class TCoutLogBackendCreator : public TLogBackendCreatorBase {
- public:
- TCoutLogBackendCreator();
- static TFactory::TRegistrator<TCoutLogBackendCreator> Registrar;
- protected:
- virtual void DoToJson(NJson::TJsonValue& value) const override;
- private:
- virtual THolder<TLogBackend> DoCreateLogBackend() const override;
- };
|