Update logger
This commit is contained in:
@@ -19,14 +19,17 @@ namespace openVulkanoCpp
|
||||
static std::vector<std::weak_ptr<spdlog::logger>> LOGGERS;
|
||||
|
||||
public:
|
||||
static std::shared_ptr<spdlog::logger> WINDOW;
|
||||
static std::shared_ptr<spdlog::logger> MANAGER;
|
||||
static std::shared_ptr<spdlog::logger> RENDER;
|
||||
static std::shared_ptr<spdlog::logger> PHYSIC;
|
||||
static std::shared_ptr<spdlog::logger> AUDIO;
|
||||
static std::shared_ptr<spdlog::logger> DATA;
|
||||
static std::shared_ptr<spdlog::logger> SCENE;
|
||||
static std::shared_ptr<spdlog::logger> INPUT;
|
||||
typedef std::shared_ptr<spdlog::logger> Ptr;
|
||||
|
||||
static Ptr WINDOW;
|
||||
static Ptr MANAGER;
|
||||
static Ptr RENDER;
|
||||
static Ptr PHYSIC;
|
||||
static Ptr AUDIO;
|
||||
static Ptr DATA;
|
||||
static Ptr SCENE;
|
||||
static Ptr INPUT;
|
||||
static Ptr FILESYS;
|
||||
|
||||
static void SetupLogger(const std::string& logFolder = "logs", const std::string& logFile = "openVulkano.log");
|
||||
|
||||
@@ -36,9 +39,9 @@ namespace openVulkanoCpp
|
||||
* \param reg If set to true the logger can be accessed again with Logger::GetLogger(name)
|
||||
* \return The created logger
|
||||
*/
|
||||
static std::shared_ptr<spdlog::logger> CreateLogger(const std::string& name, bool reg = true);
|
||||
static Ptr CreateLogger(const std::string& name, bool reg = true);
|
||||
|
||||
static std::shared_ptr<spdlog::logger> GetLogger(const std::string& name);
|
||||
static Ptr GetLogger(const std::string& name);
|
||||
|
||||
static void RegisterSink(const spdlog::sink_ptr& newSink);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user