aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/null_creator.cpp
blob: 4258fb25fde466ec39b88b96bb7a388d8c3b08b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "null_creator.h" 
#include "null.h" 
 
THolder<TLogBackend> TNullLogBackendCreator::DoCreateLogBackend() const { 
    return MakeHolder<TNullLogBackend>(); 
} 
 
ILogBackendCreator::TFactory::TRegistrator<TNullLogBackendCreator> TNullLogBackendCreator::RegistrarDevNull("/dev/null"); 
ILogBackendCreator::TFactory::TRegistrator<TNullLogBackendCreator> TNullLogBackendCreator::RegistrarNull("null"); 
 
 
void TNullLogBackendCreator::DoToJson(NJson::TJsonValue& /*value*/) const { 
} 
 
TNullLogBackendCreator::TNullLogBackendCreator() 
    : TLogBackendCreatorBase("null") 
{}