BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
8 #include <unordered_map>
45 :my(
std::move(l.my)){}
61 return e >= my->_level;
67 for(
auto itr = my->_appenders.begin(); itr != my->_appenders.end(); ++itr )
70 if( my->_additivity && my->_parent !=
nullptr) {
82 static std::unordered_map<std::string,logger>* lm =
new std::unordered_map<std::string, logger>();
83 (void)force_link_default_config;
100 { my->_appenders.push_back(a); }
104 auto item = std::find(my->_appenders.begin(), my->_appenders.end(), a);
105 if (item != my->_appenders.end())
106 my->_appenders.erase(item);
111 return my->_appenders;
logger & operator=(const logger &)
void configure_logging(const fc::path &log_config)
void append_context(const std::string &c)
modified spin-lock that yields on failure, but becomes a 'spin lock' if there are no other tasks to y...
logger & set_log_level(log_level e)
const std::string & name() const
std::vector< appender::ptr > _appenders
log_level get_log_level() const
logger & set_parent(const logger &l)
std::unordered_map< std::string, logger > & get_logger_map()
static logging_config default_config()
bool is_enabled(log_level e) const
void set_name(const std::string &n)
std::vector< appender::ptr > get_appenders() const
aggregates a message along with the context and associated meta-information.
void add_appender(const appender::ptr &a)
std::shared_ptr< appender > ptr
void remove_appender(const appender::ptr &a)
static logger get(const std::string &name="default")
bool operator!=(const optional< T > &left, const optional< T > &right)
log_context get_context() const
Defines types and helper macros necessary for generating log messages.
bool operator==(const optional< T > &left, const optional< T > &right)
logger get_parent() const