#pragma once #include "Core/EditorConsoleSink.h" #include #include #include #include #include namespace XCEngine { namespace Editor { inline void ConfigureEditorLogging(const std::string& executableDirectory) { auto& logger = Debug::Logger::Get(); logger.AddSink(std::make_unique()); logger.AddSink(std::make_unique()); const std::string logPath = executableDirectory + "\\editor.log"; logger.AddSink(std::make_unique(logPath.c_str())); logger.Info(Debug::LogCategory::General, "Editor Application starting..."); logger.Info(Debug::LogCategory::General, ("Log file: " + logPath).c_str()); } } // namespace Editor } // namespace XCEngine