blob: cd66e986c046cc30c69595fb9fdbc82d6ed8d659 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include "backend_creator.h"
class TCerrLogBackendCreator : public TLogBackendCreatorBase {
public:
TCerrLogBackendCreator();
static TFactory::TRegistrator<TCerrLogBackendCreator> RegistrarCerr;
static TFactory::TRegistrator<TCerrLogBackendCreator> RegistrarConsole;
protected:
virtual void DoToJson(NJson::TJsonValue& value) const override;
private:
virtual THolder<TLogBackend> DoCreateLogBackend() const override;
};
class TCoutLogBackendCreator : public TLogBackendCreatorBase {
public:
TCoutLogBackendCreator();
static TFactory::TRegistrator<TCoutLogBackendCreator> Registrar;
protected:
virtual void DoToJson(NJson::TJsonValue& value) const override;
private:
virtual THolder<TLogBackend> DoCreateLogBackend() const override;
};
|