blob: 95543d2550f0d7aeaebbe539a1da4c852c5cdc66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include "backend_creator.h"
class TFileLogBackendCreator : public TLogBackendCreatorBase {
public:
TFileLogBackendCreator(const TString& path = TString(), const TString& type = "file");
virtual bool Init(const IInitContext& ctx) override;
static TFactory::TRegistrator<TFileLogBackendCreator> Registrar;
protected:
virtual void DoToJson(NJson::TJsonValue& value) const override;
TString Path;
private:
virtual THolder<TLogBackend> DoCreateLogBackend() const override;
};
|