From 6fecde75f35e3467392e6be0a895d14791b71ddd Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Thu, 28 Mar 2019 21:40:18 -0400 Subject: [PATCH] common: Update LogClient.h to work without using namespace Signed-off-by: Adam C. Emerson --- src/common/LogClient.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/common/LogClient.h b/src/common/LogClient.h index e138beac0b6..64e779a3f61 100644 --- a/src/common/LogClient.h +++ b/src/common/LogClient.h @@ -38,15 +38,15 @@ namespace logging { } int parse_log_client_options(CephContext *cct, - map &log_to_monitors, - map &log_to_syslog, - map &log_channels, - map &log_prios, - map &log_to_graylog, - map &log_to_graylog_host, - map &log_to_graylog_port, + std::map &log_to_monitors, + std::map &log_to_syslog, + std::map &log_channels, + std::map &log_prios, + std::map &log_to_graylog, + std::map &log_to_graylog_host, + std::map &log_to_graylog_port, uuid_d &fsid, - string &host); + std::string &host); class LogClientTemp { @@ -64,7 +64,7 @@ public: private: clog_type type; LogChannel &parent; - stringstream ss; + std::stringstream ss; }; /** Manage where we output to and at which priority @@ -169,22 +169,22 @@ public: return (graylog != nullptr); } - typedef shared_ptr Ref; + typedef std::shared_ptr Ref; /** - * update config values from parsed k/v map for each config option + * update config values from parsed k/v std::map for each config option * * Pick out the relevant value based on our channel. */ - void update_config(map &log_to_monitors, - map &log_to_syslog, - map &log_channels, - map &log_prios, - map &log_to_graylog, - map &log_to_graylog_host, - map &log_to_graylog_port, + void update_config(std::map &log_to_monitors, + std::map &log_to_syslog, + std::map &log_channels, + std::map &log_prios, + std::map &log_to_graylog, + std::map &log_to_graylog_host, + std::map &log_to_graylog_port, uuid_d &fsid, - string &host); + std::string &host); void do_log(clog_type prio, std::stringstream& ss); void do_log(clog_type prio, const std::string& s); @@ -198,7 +198,7 @@ private: std::string syslog_facility; bool log_to_syslog; bool log_to_monitors; - shared_ptr graylog; + std::shared_ptr graylog; friend class LogClientTemp; -- 2.39.5