Livox SDK API  V2.2.0
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

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

Member Function Documentation

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.

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

Definition at line 74 of file registry.h.

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

Definition at line 184 of file registry.h.

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

Definition at line 194 of file registry.h.

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

Definition at line 175 of file registry.h.

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

Definition at line 149 of file registry.h.

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

Definition at line 139 of file registry.h.

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

Definition at line 67 of file registry.h.

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

Definition at line 84 of file registry.h.

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

Definition at line 112 of file registry.h.

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

Definition at line 48 of file registry.h.

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

Definition at line 228 of file registry.h.

registry& spdlog::details::registry::operator= ( const registry )
delete
void spdlog::details::registry::register_logger ( std::shared_ptr< logger new_logger)
inline

Definition at line 42 of file registry.h.

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

Definition at line 222 of file registry.h.

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

Definition at line 91 of file registry.h.

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

Definition at line 156 of file registry.h.

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

Definition at line 119 of file registry.h.

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

Definition at line 129 of file registry.h.

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

Definition at line 106 of file registry.h.

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

Definition at line 202 of file registry.h.

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: