初始提交: UE5.3项目基础框架

This commit is contained in:
2025-10-14 11:14:54 +08:00
commit 721d9fd98e
5334 changed files with 316782 additions and 0 deletions

View File

@ -0,0 +1,25 @@
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
#pragma once
#include "CoreMinimal.h"
#include <memory>
#include <mutex>
#include <spdlog/details/null_mutex.h>
#include <spdlog/sinks/base_sink.h>
/**
* @brief Internal implementation of a spdlog sink that forwards the messages
* to Unreal log macros.
*/
class SpdlogUnrealLoggerSink
: public spdlog::sinks::base_sink<spdlog::details::null_mutex> {
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;
};