From f5a61f6af6c4e6a46c62b1b14321ed5e75d9baa5 Mon Sep 17 00:00:00 2001 From: Rick van Vonderen <0945444@hr.nl> Date: Thu, 12 Dec 2019 23:36:24 +0100 Subject: [PATCH] Rename engine logger to core --- inferno/src/inferno/log.cpp | 4 ++-- inferno/src/inferno/log.h | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/inferno/src/inferno/log.cpp b/inferno/src/inferno/log.cpp index 1598fab..0dd8593 100644 --- a/inferno/src/inferno/log.cpp +++ b/inferno/src/inferno/log.cpp @@ -5,13 +5,13 @@ namespace Inferno { // Reserve memory - std::shared_ptr Log::m_engineLogger; + std::shared_ptr Log::m_coreLogger; std::shared_ptr Log::m_gameLogger; void Log::init() { // Create engine Logger - m_engineLogger = std::make_shared("Inferno"); + m_coreLogger = std::make_shared("Inferno"); // Create game Logger m_gameLogger = std::make_shared("Game"); } diff --git a/inferno/src/inferno/log.h b/inferno/src/inferno/log.h index 9400d2f..5d47009 100644 --- a/inferno/src/inferno/log.h +++ b/inferno/src/inferno/log.h @@ -14,11 +14,11 @@ namespace Inferno { // ----------------------------------------- - inline static std::shared_ptr &getEngineLogger() { return m_engineLogger; } + inline static std::shared_ptr &getCoreLogger() { return m_coreLogger; } inline static std::shared_ptr &getGameLogger() { return m_gameLogger; } private: - static std::shared_ptr m_engineLogger; + static std::shared_ptr m_coreLogger; static std::shared_ptr m_gameLogger; }; @@ -40,11 +40,11 @@ namespace Inferno { } -#define NF_CORE_LOG(x) Inferno::Log::getEngineLogger()->log(x) -#define NF_CORE_INFO(x) Inferno::Log::getEngineLogger()->info(x) -#define NF_CORE_WARN(x) Inferno::Log::getEngineLogger()->warn(x) -#define NF_CORE_DANGER(x) Inferno::Log::getEngineLogger()->danger(x) -#define NF_CORE_SUCCESS(x) Inferno::Log::getEngineLogger()->success(x) +#define NF_CORE_LOG(x) Inferno::Log::getCoreLogger()->log(x) +#define NF_CORE_INFO(x) Inferno::Log::getCoreLogger()->info(x) +#define NF_CORE_WARN(x) Inferno::Log::getCoreLogger()->warn(x) +#define NF_CORE_DANGER(x) Inferno::Log::getCoreLogger()->danger(x) +#define NF_CORE_SUCCESS(x) Inferno::Log::getCoreLogger()->success(x) #define NF_LOG(x) Inferno::Log::getGameLogger()->log(x) #define NF_INFO(x) Inferno::Log::getGameLogger()->info(x)