null_creator.cpp 570 B

1234567891011121314151617
  1. #include "null_creator.h"
  2. #include "null.h"
  3. THolder<TLogBackend> TNullLogBackendCreator::DoCreateLogBackend() const {
  4. return MakeHolder<TNullLogBackend>();
  5. }
  6. ILogBackendCreator::TFactory::TRegistrator<TNullLogBackendCreator> TNullLogBackendCreator::RegistrarDevNull("/dev/null");
  7. ILogBackendCreator::TFactory::TRegistrator<TNullLogBackendCreator> TNullLogBackendCreator::RegistrarNull("null");
  8. void TNullLogBackendCreator::DoToJson(NJson::TJsonValue& /*value*/) const {
  9. }
  10. TNullLogBackendCreator::TNullLogBackendCreator()
  11. : TLogBackendCreatorBase("null")
  12. {}