// Copyright 2020-2024 CesiumGS, Inc. and Contributors #pragma once #include "CoreMinimal.h" #include #include #include #include /** * @brief Internal implementation of a spdlog sink that forwards the messages * to Unreal log macros. */ class SpdlogUnrealLoggerSink : public spdlog::sinks::base_sink { protected: virtual void sink_it_(const spdlog::details::log_msg& msg) override; virtual void flush_() override; private: FString formatMessage(const spdlog::details::log_msg& msg) const; mutable std::mutex _formatMutex; };