aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/null_creator.cpp
blob: 9f63d5c739465f4dfa15d4209a7da296e5c12039 (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")
{}