#include <spdlog/spdlog.h>
#include <spdlog/async.h>
#include <spdlog/sinks/rotating_file_sink.h>
#include <spdlog/fmt/ostr.h>
#include <spdlog/fmt/bundled/color.h>
#include <spdlog/fmt/bundled/base.h>
#include <spdlog/fmt/bundled/format.h>
#include "Utility/CleanTypeName.hpp"
#include <cstdlib>
Go to the source code of this file.
|
| namespace | Cori |
| | Global engine namespace.
|
◆ BUGTRAP
| #define BUGTRAP std::abort() |
◆ CORI_ASSERT
| #define CORI_ASSERT |
( |
| x, |
|
|
| ... ) |
Value:
static std::shared_ptr< spdlog::logger > & GetClientLogger()
Definition at line 1047 of file Logger.hpp.
◆ CORI_CHECK
| #define CORI_CHECK |
( |
| x, |
|
|
| ... ) |
◆ CORI_CHECK_EXPECTED
| #define CORI_CHECK_EXPECTED |
( |
| x | ) |
|
Value:CORI_CHECK(x,
"std::expected returned an error, message: {}", x.error().what())
#define CORI_CHECK(x,...)
Definition at line 1050 of file Logger.hpp.
◆ CORI_CORE_ASSERT
| #define CORI_CORE_ASSERT |
( |
| x, |
|
|
| ... ) |
◆ CORI_CORE_CHECK
| #define CORI_CORE_CHECK |
( |
| x, |
|
|
| ... ) |
Value:
static std::shared_ptr< spdlog::logger > & GetCoreLogger()
Definition at line 1042 of file Logger.hpp.
◆ CORI_CORE_CHECK_EXPECTED
| #define CORI_CORE_CHECK_EXPECTED |
( |
| x | ) |
|
Value:CORI_CORE_CHECK(x,
"std::expected returned an error, message: {}", x.error().what())
#define CORI_CORE_CHECK(x,...)
Definition at line 1043 of file Logger.hpp.
◆ CORI_CORE_DEBUG
| #define CORI_CORE_DEBUG |
( |
| ... | ) |
|
◆ CORI_CORE_DEBUG_TAGGED
| #define CORI_CORE_DEBUG_TAGGED |
( |
| ... | ) |
|
◆ CORI_CORE_ERROR
| #define CORI_CORE_ERROR |
( |
| ... | ) |
|
Value:
static void CoreLogError(const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1035 of file Logger.hpp.
◆ CORI_CORE_ERROR_TAGGED
| #define CORI_CORE_ERROR_TAGGED |
( |
| ... | ) |
|
Value:
static void CoreLogErrorTagged(const std::initializer_list< const char * > tags, const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1039 of file Logger.hpp.
◆ CORI_CORE_FATAL
| #define CORI_CORE_FATAL |
( |
| ... | ) |
|
Value:
static void CoreLogFatal(const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1036 of file Logger.hpp.
◆ CORI_CORE_FATAL_TAGGED
| #define CORI_CORE_FATAL_TAGGED |
( |
| ... | ) |
|
Value:
static void CoreLogFatalTagged(const std::initializer_list< const char * > tags, const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1040 of file Logger.hpp.
◆ CORI_CORE_INFO
| #define CORI_CORE_INFO |
( |
| ... | ) |
|
◆ CORI_CORE_INFO_TAGGED
| #define CORI_CORE_INFO_TAGGED |
( |
| ... | ) |
|
◆ CORI_CORE_TRACE
| #define CORI_CORE_TRACE |
( |
| ... | ) |
|
◆ CORI_CORE_TRACE_TAGGED
| #define CORI_CORE_TRACE_TAGGED |
( |
| ... | ) |
|
◆ CORI_CORE_VERIFY
| #define CORI_CORE_VERIFY |
( |
| x, |
|
|
| ... ) |
◆ CORI_CORE_WARN
| #define CORI_CORE_WARN |
( |
| ... | ) |
|
Value:
static void CoreLogWarn(const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1034 of file Logger.hpp.
◆ CORI_CORE_WARN_TAGGED
| #define CORI_CORE_WARN_TAGGED |
( |
| ... | ) |
|
Value:
static void CoreLogWarnTagged(const std::initializer_list< const char * > tags, const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1038 of file Logger.hpp.
◆ CORI_DEBUG
| #define CORI_DEBUG |
( |
| ... | ) |
|
Value:
static void ClientLogDebug(const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1053 of file Logger.hpp.
◆ CORI_DEBUG_TAGGED
| #define CORI_DEBUG_TAGGED |
( |
| ... | ) |
|
Value:
static void ClientLogDebugTagged(const std::initializer_list< const char * > tags, const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1060 of file Logger.hpp.
◆ CORI_ERROR
| #define CORI_ERROR |
( |
| ... | ) |
|
Value:
static void ClientLogError(const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1056 of file Logger.hpp.
◆ CORI_ERROR_TAGGED
| #define CORI_ERROR_TAGGED |
( |
| ... | ) |
|
Value:
static void ClientLogErrorTagged(const std::initializer_list< const char * > tags, const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1063 of file Logger.hpp.
◆ CORI_FATAL
| #define CORI_FATAL |
( |
| ... | ) |
|
Value:
static void ClientLogFatal(const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1057 of file Logger.hpp.
◆ CORI_FATAL_TAGGED
| #define CORI_FATAL_TAGGED |
( |
| ... | ) |
|
Value:
static void ClientLogFatalTagged(const std::initializer_list< const char * > tags, const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1064 of file Logger.hpp.
◆ CORI_INFO
Value:
static void ClientLogInfo(const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1054 of file Logger.hpp.
◆ CORI_INFO_TAGGED
| #define CORI_INFO_TAGGED |
( |
| ... | ) |
|
Value:
static void ClientLogInfoTagged(const std::initializer_list< const char * > tags, const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1061 of file Logger.hpp.
◆ CORI_TRACE
| #define CORI_TRACE |
( |
| ... | ) |
|
Value:
static void ClientLogTrace(const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1052 of file Logger.hpp.
◆ CORI_TRACE_TAGGED
| #define CORI_TRACE_TAGGED |
( |
| ... | ) |
|
Value:
static void ClientLogTraceTagged(const std::initializer_list< const char * > tags, const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1059 of file Logger.hpp.
◆ CORI_VERIFY
| #define CORI_VERIFY |
( |
| x, |
|
|
| ... ) |
◆ CORI_WARN
Value:
static void ClientLogWarn(const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1055 of file Logger.hpp.
◆ CORI_WARN_TAGGED
| #define CORI_WARN_TAGGED |
( |
| ... | ) |
|
Value:
static void ClientLogWarnTagged(const std::initializer_list< const char * > tags, const fmt::format_string< Args... > &fmt, Args &&... args)
Definition at line 1062 of file Logger.hpp.
◆ CORI_SECOND_LINE_SPACING
| const std::string CORI_SECOND_LINE_SPACING = "[" + std::string(43, '-') + "]: " |
|
inline |