|
SDEngine
Game Engine
|
Namespaces | |
| namespace | engine |
| namespace | game |
Classes | |
| struct | CategoryInfo |
| class | imgui_sink |
| struct | LogEntry |
Typedefs | |
| using | ImguiSinkMt = imgui_sink< std::mutex > |
Enumerations | |
| enum class | LogLevel { TRACE = ENGINE_LOG_LEVEL_TRACE , DEBUG = ENGINE_LOG_LEVEL_DEBUG , INFO = ENGINE_LOG_LEVEL_INFO , WARN = ENGINE_LOG_LEVEL_WARN , ERROR = ENGINE_LOG_LEVEL_ERROR , CRITICAL = ENGINE_LOG_LEVEL_CRITICAL , OFF = ENGINE_LOG_LEVEL_OFF } |
Functions | |
| SD_EXPORT std::deque< LogEntry > | get_log_history () |
| SD_EXPORT void | add_log_entry (LogEntry entry) |
| SD_EXPORT std::vector< CategoryInfo > & | get_category_registry () |
| SD_EXPORT void | register_category (const char *name, ImVec4 color) |
| bool | is_category_under (const std::string &child, const std::string &parent) |
| SD_EXPORT void | init () |
| Initializes all category loggers, shared sinks, and the ImGui sink. | |
| spdlog::level::level_enum | to_spdlog_level (LogLevel level) |
| LogLevel | from_spdlog_level (spdlog::level::level_enum level) |
| std::shared_ptr< spdlog::logger > | get_category_logger_or_report (const char *categoryPath) |
| static float | get_uptime_sec () |
| static void | create_category_logger (const char *name, const LogLevel minLevel) |
Variables | |
| static std::deque< LogEntry > | g_log_history |
| static std::mutex | g_log_mutex |
| static std::vector< CategoryInfo > | g_category_registry |
| static std::vector< spdlog::sink_ptr > | g_shared_sinks |
| static spdlog::sink_ptr | g_engine_file_sink |
| static spdlog::sink_ptr | g_game_file_sink |
| static std::chrono::steady_clock::time_point | s_start_time |
| using sd::log::ImguiSinkMt = typedef imgui_sink<std::mutex> |
|
strong |
| LogLevel sd::log::from_spdlog_level | ( | spdlog::level::level_enum | level | ) |
|
inline |
| std::vector< CategoryInfo > & sd::log::get_category_registry | ( | ) |
| std::deque< LogEntry > sd::log::get_log_history | ( | ) |
| void sd::log::init | ( | ) |
Initializes all category loggers, shared sinks, and the ImGui sink.
| spdlog::level::level_enum sd::log::to_spdlog_level | ( | LogLevel | level | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |