blob: 04928f616c03e0f8aa353178d3e3fa2799a42323 (
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
|
#pragma once
#include "backend.h"
#include <library/cpp/logger/backend_creator.h>
namespace NUnifiedAgent {
class TLogBackendCreator: public TLogBackendCreatorBase {
public:
TLogBackendCreator();
bool Init(const IInitContext& ctx) override;
static TFactory::TRegistrator<TLogBackendCreator> Registrar;
protected:
void DoToJson(NJson::TJsonValue& value) const override;
private:
THolder<TLogBackend> DoCreateLogBackend() const override;
private:
THolder<TClientParameters> ClientParams;
THolder<ILogBackendCreator> OwnLogger;
};
}
|