#pragma once #include #include #include namespace NUnifiedAgent { class IRecordConverter { public: virtual ~IRecordConverter() = default; virtual TClientMessage Convert(const TLogRecord&) const = 0; }; THolder MakeDefaultRecordConverter(bool stripTrailingNewLine = true); THolder AsLogBackend(const TClientSessionPtr& session, bool stripTrailingNewLine = true); THolder MakeLogBackend(const TClientParameters& parameters, const TSessionParameters& sessionParameters = {}, THolder recordConverter = {}); THolder<::TLog> MakeLog(const TClientParameters& parameters, const TSessionParameters& sessionParameters = {}, THolder recordConverter = {}); }