Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::Log Class Reference

A logging utility class for the Vesper engine. More...

#include <Log.h>

Static Public Member Functions

static std::shared_ptr< spdlog::logger > & GetClientLogger ()
 Returns the client logger instance.
 
static std::shared_ptr< spdlog::logger > & GetCoreLogger ()
 Returns the core logger instance.
 
static void Init ()
 Initializes the logging system.
 

Static Private Attributes

static std::shared_ptr< spdlog::logger > s_ClientLogger
 
static std::shared_ptr< spdlog::logger > s_CoreLogger
 

Detailed Description

A logging utility class for the Vesper engine.

Todo:
Rethink logging flow with Macros and possibly implement different loggers for different modules.

Member Function Documentation

◆ GetClientLogger()

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

Returns the client logger instance.

26{ return s_ClientLogger; }
static std::shared_ptr< spdlog::logger > s_ClientLogger
Definition Log.h:29

◆ GetCoreLogger()

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

Returns the core logger instance.

24{ return s_CoreLogger; }
static std::shared_ptr< spdlog::logger > s_CoreLogger
Definition Log.h:28

◆ Init()

void Muto::Log::Init ( )
static

Initializes the logging system.

17 {
18 spdlog::set_pattern("%^[%T] %n: %v%$");
19 s_CoreLogger = spdlog::stdout_color_mt("VESPER");
20 s_CoreLogger->set_level(spdlog::level::trace);
21
22 s_ClientLogger = spdlog::stdout_color_mt("APP");
23 s_ClientLogger->set_level(spdlog::level::trace);
24 }

Member Data Documentation

◆ s_ClientLogger

std::shared_ptr< spdlog::logger > Muto::Log::s_ClientLogger
staticprivate

◆ s_CoreLogger

std::shared_ptr< spdlog::logger > Muto::Log::s_CoreLogger
staticprivate

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