blob: 73e55261ad33b931336259636cf07ca86c949cb0 (
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;
};
|