LkEngine 0.1.2
 
Loading...
Searching...
No Matches
LkEngine::LLog Class Reference

#include <Log.h>

Classes

struct  FTagDetails
 

Public Member Functions

template<typename... TArgs>
 fflush (stdout)
 
template<typename... TArgs>
 fflush (stdout)
 
template<typename... TArgs>
FORCEINLINE void PrintAssertMessage (const ELoggerType LoggerType, std::string_view Message)
 

Static Public Member Functions

static LLogGet ()
 
static void Initialize (std::string_view LogfileName="")
 
static void RegisterLogger (const ELoggerType Type, const std::string &Name, const ELogLevel LogLevel=ELogLevel::Info, const std::vector< LogLevelColorConfig > &LevelConfigs={}, const Color::EColorCode MainColor=Color::EColorCode::Reset)
 
static FORCEINLINE std::shared_ptr< spdlog::logger > & GetLogger (const ELoggerType LoggerType)
 Get a logger instance with the help of a logger type.
 
template<typename... TArgs>
static void PrintMessageWithTag (const ELoggerType LoggerType, const ELogLevel Level, std::string_view Tag, std::string_view Message)
 Print a formatted message.
 
template<typename... TArgs>
static void PrintAssertMessage (const ELoggerType LoggerType, std::string_view Prefix)
 
static FORCEINLINE const char * LevelToString (const ELogLevel Level)
 
static FORCEINLINE ELogLevel LevelFromString (std::string_view InString)
 
static FORCEINLINE spdlog::level::level_enum ToSpdlogLevel (const ELogLevel Level)
 
template<bool Safe = false>
static FORCEINLINE std::string_view GetLoggerName (const ELoggerType LoggerType)
 

Detailed Description

Engine logger.

Member Function Documentation

◆ Initialize()

void LkEngine::LLog::Initialize ( std::string_view LogfileName = "")
static

Index 0: File Index 1: Stdout

◆ PrintMessageWithTag()

template<typename... TArgs>
FORCEINLINE void LkEngine::LLog::PrintMessageWithTag ( const ELoggerType LoggerType,
const ELogLevel Level,
std::string_view Tag,
std::string_view Message )
static

Print a formatted message.

Note
Uses std::format_string on MSVC and fmt::format on GCC/Clang.

Print a formatted message with a tag.

Note
Uses std::format_string on MSVC and fmt::format on GCC/Clang.

◆ ToSpdlogLevel()

static FORCEINLINE spdlog::level::level_enum LkEngine::LLog::ToSpdlogLevel ( const ELogLevel Level)
inlinestatic

Convert a ELogLevel to spdlog::level.


The documentation for this class was generated from the following files: