diff options
Diffstat (limited to 'src/core/log.h')
| -rw-r--r-- | src/core/log.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/log.h b/src/core/log.h index 77324f5..1477226 100644 --- a/src/core/log.h +++ b/src/core/log.h @@ -1,7 +1,8 @@ #pragma once +#include "core/memory.h" + #include <string> -#include <memory> #include <vector> #include <sstream> #include <iostream> @@ -28,7 +29,7 @@ namespace Donut static void init(); static void shutdown(); - static std::shared_ptr<Logger> get_logger(); + static Ref<Logger> get_logger(); template<typename... Args> static void trace(const std::string_view& format, const Args&... args) @@ -135,7 +136,7 @@ namespace Donut std::ofstream m_log_file; std::mutex m_mutex; - static std::shared_ptr<Logger> s_logger; + static Ref<Logger> s_logger; }; } |
