ShitEngine
基于 C++20 与 SDL3 的轻量级 2D 游戏引擎
载入中...
搜索中...
未找到
Log类 参考

日志封装类 更多...

#include <Log.h>

静态 Public 成员函数

static bool Init ()
template<typename... Args>
static void Trace (fmt::format_string< Args... > fmt, Args &&... args)
template<typename... Args>
static void Debug (fmt::format_string< Args... > fmt, Args &&... args)
template<typename... Args>
static void Info (fmt::format_string< Args... > fmt, Args &&... args)
template<typename... Args>
static void Warn (fmt::format_string< Args... > fmt, Args &&... args)
template<typename... Args>
static void Error (fmt::format_string< Args... > fmt, Args &&... args)
template<typename... Args>
static void Critical (fmt::format_string< Args... > fmt, Args &&... args)
static std::shared_ptr< spdlog::logger > & GetCoreLogger ()
static std::shared_ptr< spdlog::logger > & GetClientLogger ()

详细描述

日志封装类

成员函数说明

◆ Critical()

template<typename... Args>
void Critical ( fmt::format_string< Args... > fmt,
Args &&... args )
inlinestatic

◆ Debug()

template<typename... Args>
void Debug ( fmt::format_string< Args... > fmt,
Args &&... args )
inlinestatic

◆ Error()

template<typename... Args>
void Error ( fmt::format_string< Args... > fmt,
Args &&... args )
inlinestatic

◆ GetClientLogger()

std::shared_ptr< spdlog::logger > & GetClientLogger ( )
inlinestatic

◆ GetCoreLogger()

std::shared_ptr< spdlog::logger > & GetCoreLogger ( )
inlinestatic

◆ Info()

template<typename... Args>
void Info ( fmt::format_string< Args... > fmt,
Args &&... args )
inlinestatic

◆ Init()

bool Init ( )
static

◆ Trace()

template<typename... Args>
void Trace ( fmt::format_string< Args... > fmt,
Args &&... args )
inlinestatic

◆ Warn()

template<typename... Args>
void Warn ( fmt::format_string< Args... > fmt,
Args &&... args )
inlinestatic

该类的文档由以下文件生成: