aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/null_creator.h
blob: a5bcab63f9d25e2d4967058b90a73d4799659710 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "backend_creator.h"

class TNullLogBackendCreator : public TLogBackendCreatorBase {
public:
    TNullLogBackendCreator();
    static TFactory::TRegistrator<TNullLogBackendCreator> RegistrarNull;
    static TFactory::TRegistrator<TNullLogBackendCreator> RegistrarDevNull;
protected:
    virtual void DoToJson(NJson::TJsonValue& value) const override;

private:
    virtual THolder<TLogBackend> DoCreateLogBackend() const override;
};