Cleaned MD use of logs.

This commit is contained in:
Pedro Pinto committed 2017-10-09 22:24:21 +00:00
1 parent 36cee53c41
commit b9a6c078aa
5 files changed
+19 -14

No files matched your search

+12 -1
View File
@@ -33,6 +33,15 @@ typename M::const_iterator find_key(M const&m, typename M::mapped_type const &v)
return m.end();
}
boost::filesystem::path log_path ()
{
auto store_root = os::bts_data_path();
std::string base_path = store_root;
boost::filesystem::path result = utils::normalize_data_path (base_path);
result /= "logging";
return result;
}
void start_default_logging_thread()
{
_default_logger_hub.start();
@@ -85,7 +94,9 @@ void configure_logging(bts::config::Logging const&cfg)
{log::Api,"Api"},
{log::Persistence,"Persistence"},
{log::User,"User"},
{log::OrderMan,"OrderMan"}};
{log::OrderMan,"OrderMan"},
{log::Latency,"Latency"},
};
real_cfg.sinks["console"] =
std::make_pair (console_sink(),get_filter(real_cfg,cfg.console()));