// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "sessions.h" #include #include #include namespace zen { /// Log sink that forwards log messages to the server's own session /// in the SessionsService, making them visible in the sessions browser UI. class InProcSessionLogSink : public logging::Sink { public: explicit InProcSessionLogSink(SessionsService& Service) : m_Service(Service), m_SessionId(GetSessionId()) {} void Log(const logging::LogMessage& Msg) override; void Flush() override {} void SetFormatter(std::unique_ptr /*InFormatter*/) override {} private: SessionsService& m_Service; Oid m_SessionId; }; } // namespace zen