WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
spdlog::details::registry Class Reference

#include <registry.h>

Public Member Functions

 registry (const registry &)=delete
 
registryoperator= (const registry &)=delete
 
void register_logger (std::shared_ptr< logger > new_logger)
 
void initialize_logger (std::shared_ptr< logger > new_logger)
 
std::shared_ptr< loggerget (const std::string &logger_name)
 
std::shared_ptr< loggerdefault_logger ()
 
loggerget_default_raw ()
 
void set_default_logger (std::shared_ptr< logger > new_default_logger)
 
void set_tp (std::shared_ptr< thread_pool > tp)
 
std::shared_ptr< thread_poolget_tp ()
 
void set_formatter (std::unique_ptr< formatter > formatter)
 
void set_level (level::level_enum log_level)
 
void flush_on (level::level_enum log_level)
 
void flush_every (std::chrono::seconds interval)
 
void set_error_handler (log_err_handler handler)
 
void apply_all (const std::function< void(const std::shared_ptr< logger >)> &fun)
 
void flush_all ()
 
void drop (const std::string &logger_name)
 
void drop_all ()
 
void shutdown ()
 
std::recursive_mutex & tp_mutex ()
 
void set_automatic_registration (bool automatic_regsistration)
 

Static Public Member Functions

static registryinstance ()
 

Detailed Description

Definition at line 36 of file registry.h.

Constructor & Destructor Documentation

◆ registry()

spdlog::details::registry::registry ( const registry )
delete

Member Function Documentation

◆ apply_all()

void spdlog::details::registry::apply_all ( const std::function< void(const std::shared_ptr< logger >)> &  fun)
inline

Definition at line 166 of file registry.h.

Here is the caller graph for this function:

◆ default_logger()

std::shared_ptr<logger> spdlog::details::registry::default_logger ( )
inline

Definition at line 74 of file registry.h.

Here is the caller graph for this function:

◆ drop()

void spdlog::details::registry::drop ( const std::string &  logger_name)
inline

Definition at line 184 of file registry.h.

Here is the caller graph for this function:

◆ drop_all()

void spdlog::details::registry::drop_all ( )
inline

Definition at line 194 of file registry.h.

Here is the caller graph for this function:

◆ flush_all()

void spdlog::details::registry::flush_all ( )
inline

Definition at line 175 of file registry.h.

Here is the caller graph for this function:

◆ flush_every()

void spdlog::details::registry::flush_every ( std::chrono::seconds  interval)
inline

Definition at line 149 of file registry.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flush_on()

void spdlog::details::registry::flush_on ( level::level_enum  log_level)
inline

Definition at line 139 of file registry.h.

Here is the caller graph for this function:

◆ get()

std::shared_ptr<logger> spdlog::details::registry::get ( const std::string &  logger_name)
inline

Definition at line 67 of file registry.h.

Here is the caller graph for this function:

◆ get_default_raw()

logger* spdlog::details::registry::get_default_raw ( )
inline

Definition at line 84 of file registry.h.

Here is the caller graph for this function:

◆ get_tp()

std::shared_ptr<thread_pool> spdlog::details::registry::get_tp ( )
inline

Definition at line 112 of file registry.h.

Here is the caller graph for this function:

◆ initialize_logger()

void spdlog::details::registry::initialize_logger ( std::shared_ptr< logger new_logger)
inline

Definition at line 48 of file registry.h.

Here is the caller graph for this function:

◆ instance()

static registry& spdlog::details::registry::instance ( )
inlinestatic

Definition at line 228 of file registry.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

registry& spdlog::details::registry::operator= ( const registry )
delete

◆ register_logger()

void spdlog::details::registry::register_logger ( std::shared_ptr< logger new_logger)
inline

Definition at line 42 of file registry.h.

Here is the caller graph for this function:

◆ set_automatic_registration()

void spdlog::details::registry::set_automatic_registration ( bool  automatic_regsistration)
inline

Definition at line 222 of file registry.h.

Here is the caller graph for this function:

◆ set_default_logger()

void spdlog::details::registry::set_default_logger ( std::shared_ptr< logger new_default_logger)
inline

Definition at line 91 of file registry.h.

Here is the caller graph for this function:

◆ set_error_handler()

void spdlog::details::registry::set_error_handler ( log_err_handler  handler)
inline

Definition at line 156 of file registry.h.

Here is the caller graph for this function:

◆ set_formatter()

void spdlog::details::registry::set_formatter ( std::unique_ptr< formatter formatter)
inline

Definition at line 119 of file registry.h.

Here is the caller graph for this function:

◆ set_level()

void spdlog::details::registry::set_level ( level::level_enum  log_level)
inline

Definition at line 129 of file registry.h.

Here is the caller graph for this function:

◆ set_tp()

void spdlog::details::registry::set_tp ( std::shared_ptr< thread_pool tp)
inline

Definition at line 106 of file registry.h.

Here is the caller graph for this function:

◆ shutdown()

void spdlog::details::registry::shutdown ( )
inline

Definition at line 202 of file registry.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tp_mutex()

std::recursive_mutex& spdlog::details::registry::tp_mutex ( )
inline

Definition at line 217 of file registry.h.


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