Derecho  0.9
Distributed systems toolkit for RDMA
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
LoggerFactory Class Reference

#include <logger.hpp>

Static Public Member Functions

static std::shared_ptr< spdlog::logger > createLogger (const std::string &logger_name, spdlog::level::level_enum log_level=spdlog::level::info)
 
static std::shared_ptr< spdlog::logger > & getDefaultLogger ()
 

Static Private Member Functions

static void _initialize ()
 
static std::shared_ptr< spdlog::logger > _create_logger (const std::string &logger_name, spdlog::level::level_enum log_level)
 

Static Private Attributes

static std::atomic< uint32_t > _initialize_state = LOGGER_FACTORY_UNINITIALIZED
 
static std::shared_ptr< spdlog::details::thread_pool > _thread_pool_holder
 
static std::shared_ptr< spdlog::logger > _default_logger
 

Detailed Description

Definition at line 12 of file logger.hpp.

Member Function Documentation

◆ _create_logger()

std::shared_ptr< spdlog::logger > LoggerFactory::_create_logger ( const std::string &  logger_name,
spdlog::level::level_enum  log_level 
)
staticprivate

Definition at line 17 of file logger.cpp.

◆ _initialize()

void LoggerFactory::_initialize ( )
staticprivate

Definition at line 37 of file logger.cpp.

◆ createLogger()

std::shared_ptr< spdlog::logger > LoggerFactory::createLogger ( const std::string &  logger_name,
spdlog::level::level_enum  log_level = spdlog::level::info 
)
static

Definition at line 61 of file logger.cpp.

◆ getDefaultLogger()

std::shared_ptr< spdlog::logger > & LoggerFactory::getDefaultLogger ( )
static

Definition at line 68 of file logger.cpp.

Member Data Documentation

◆ _default_logger

std::shared_ptr< spdlog::logger > LoggerFactory::_default_logger
staticprivate

Definition at line 16 of file logger.hpp.

◆ _initialize_state

std::atomic< uint32_t > LoggerFactory::_initialize_state = LOGGER_FACTORY_UNINITIALIZED
staticprivate

Definition at line 14 of file logger.hpp.

◆ _thread_pool_holder

std::shared_ptr< spdlog::details::thread_pool > LoggerFactory::_thread_pool_holder
staticprivate

Definition at line 15 of file logger.hpp.


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