TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas::console_log_manager Class Referenceexport

logger for logging messages to stdout on the console More...

Public Member Functions

 console_log_manager (const std::string &p_pattern="%^[%n] [%T]: %v%$")
 

Static Public Member Functions

static std::shared_ptr< spdlog::logger > get (const std::string &p_tag)
 retrieves that specific logger if it has been constructed
 

Detailed Description

logger for logging messages to stdout on the console

Manages the logger instances and patterns for setting up with the loggers when writing logs

Constructor & Destructor Documentation

◆ console_log_manager()

atlas::console_log_manager::console_log_manager ( const std::string &  p_pattern = "%^[%n] [%T]: %v%$")
inlineexport
Note
Setting up logs for different log stdout's
Logs for p_tag is logs specific to the game.

Member Function Documentation

◆ get()

static std::shared_ptr< spdlog::logger > atlas::console_log_manager::get ( const std::string &  p_tag)
inlinestaticexport

retrieves that specific logger if it has been constructed

Returns
ref<spdlog::logger> if found, otherwise return nullptr

TODO: Should have this throw an exception rather then returning nullptr


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