SDEngine
Game Engine
Loading...
Searching...
No Matches
logging.cpp File Reference
#include "SD/core/logging.hpp"
#include "spdlog/async.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/sinks/base_sink.h"
#include <algorithm>
#include <chrono>
#include <mutex>
#include <vector>
+ Include dependency graph for logging.cpp:

Classes

class  sd::log::imgui_sink< Mutex >
 

Namespaces

namespace  sd
 
namespace  sd::log
 
namespace  sd::log::game
 
namespace  sd::log::game::combat
 

Typedefs

using sd::log::ImguiSinkMt = imgui_sink< std::mutex >
 

Functions

SD_EXPORT std::deque< LogEntrysd::log::get_log_history ()
 
SD_EXPORT void sd::log::add_log_entry (LogEntry entry)
 
SD_EXPORT std::vector< CategoryInfo > & sd::log::get_category_registry ()
 
spdlog::level::level_enum sd::log::to_spdlog_level (LogLevel level)
 
LogLevel sd::log::from_spdlog_level (spdlog::level::level_enum level)
 
static float sd::log::get_uptime_sec ()
 
static void sd::log::create_category_logger (const char *name, const LogLevel minLevel)
 
SD_EXPORT void sd::log::register_category (const char *name, ImVec4 color)
 
bool sd::log::is_category_under (const std::string &child, const std::string &parent)
 
SD_EXPORT void sd::log::init ()
 Initializes all category loggers, shared sinks, and the ImGui sink.
 

Variables

static std::deque< LogEntrysd::log::g_log_history
 
static std::mutex sd::log::g_log_mutex
 
static std::vector< CategoryInfosd::log::g_category_registry
 
static std::vector< spdlog::sink_ptr > sd::log::g_shared_sinks
 
static spdlog::sink_ptr sd::log::g_engine_file_sink
 
static spdlog::sink_ptr sd::log::g_game_file_sink
 
static std::chrono::steady_clock::time_point sd::log::s_start_time