aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/uninitialized_creator.h
blob: 0340995338d1178431d30ff244ec2f23c477b95d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once 
 
#include "backend_creator.h" 
 
class TLogBackendCreatorUninitialized : public ILogBackendCreator { 
public: 
    void InitCustom(const TString& type, ELogPriority priority, bool threaded); 
    virtual bool Init(const IInitContext& ctx) override; 
    virtual void ToJson(NJson::TJsonValue& value) const override; 
 
    static TFactory::TRegistrator<TLogBackendCreatorUninitialized> Registrar; 
 
private: 
    virtual THolder<TLogBackend> DoCreateLogBackend() const override; 
    THolder<ILogBackendCreator> Slave; 
};