aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/system_creator.h
blob: e5321267e956408af5651b32a646247b4ee604f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "backend_creator.h"
#include "system.h"

class TSysLogBackendCreator : public TLogBackendCreatorBase {
public:
    TSysLogBackendCreator();
    virtual bool Init(const IInitContext& ctx) override;
    static TFactory::TRegistrator<TSysLogBackendCreator> Registrar;

protected:
    virtual void DoToJson(NJson::TJsonValue& value) const override;

private:
    virtual THolder<TLogBackend> DoCreateLogBackend() const override;
    TString Ident;
    TSysLogBackend::EFacility Facility = TSysLogBackend::TSYSLOG_LOCAL0;
    int Flags = 0;
};