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

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

#include <engine_logger.hpp>

Static Public Member Functions

static void initialize_logger_manager (const std::string &pattern="%^[%T] %n: %v%$")
 initializes the console_log_manager
 
static void set_current_logger (const std::string &p_tag="Undefined g_Tag in console_logger")
 sets what the current logger to write to the console with
 
static void create_new_logger (const std::string &p_tag="Undefined Tag")
 constructs a new spdlog::logger to write to the console
 
static ref< 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

Member Function Documentation

◆ get()

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

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

◆ initialize_logger_manager()

static void atlas::console_log_manager::initialize_logger_manager ( const std::string &  pattern = "%^[%T] %n: %v%$")
static

initializes the console_log_manager

TODO: Revisit the logger and do some refactoring because the way this works should be changed, as I'd prob do this differently now.


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