]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Log: Replace namespace log with loging
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 25 Oct 2016 17:38:29 +0000 (19:38 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 25 Oct 2016 17:45:24 +0000 (19:45 +0200)
 - This to avoid a nameing confilct that Clang finds with
   std::log from cmath

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
17 files changed:
src/common/Graylog.cc
src/common/Graylog.h
src/common/LogClient.cc
src/common/LogClient.h
src/common/ceph_context.cc
src/common/ceph_context.h
src/common/config.h
src/common/dout.h
src/log/Entry.h
src/log/EntryQueue.h
src/log/Log.cc
src/log/Log.h
src/log/SubsystemMap.cc
src/log/SubsystemMap.h
src/log/test.cc
src/mon/LogMonitor.cc
src/mon/LogMonitor.h

index 3342b1069b4f5f594b1b54bdcbecefee783ed60c..ff2935151a345553600b5f4856448aeb07212523 100644 (file)
@@ -15,7 +15,7 @@
 #include "include/uuid.h"
 
 namespace ceph {
-namespace log {
+namespace logging {
 
 Graylog::Graylog(const SubsystemMap * const s, std::string logger)
     : m_subs(s),
@@ -167,5 +167,5 @@ void Graylog::log_log_entry(LogEntry const * const e)
   }
 }
 
-} // ceph::log::
+} // ceph::logging::
 } // ceph::
index e305e081c5b811d929f57d2e7ecd39e82ce7d171..5452866ffe43af46a8ee21b6a3755e85d18837f6 100644 (file)
@@ -21,7 +21,7 @@ namespace ceph {
 
 class Formatter;
 
-namespace log {
+namespace logging {
 
 struct Entry;
 class SubsystemMap;
index 237ce4bcf9d28578e5bc99d03bf24be1f06d6f3c..a51bb10f13a67324c44269bab776c8958e45a744 100644 (file)
@@ -197,7 +197,7 @@ void LogChannel::update_config(map<string,string> &log_to_monitors,
   set_log_prio(prio);
 
   if (to_graylog && !graylog) { /* should but isn't */
-    graylog = ceph::log::Graylog::Ref(new ceph::log::Graylog("clog"));
+    graylog = ceph::logging::Graylog::Ref(new ceph::logging::Graylog("clog"));
   } else if (!to_graylog && graylog) { /* shouldn't but is */
     graylog.reset();
   }
index 3bb4e47301b47eb9410624168713310833ded85c..cc3ae92798c4ee0a30c7130cca543185bb7bb324 100644 (file)
@@ -33,7 +33,7 @@ struct Connection;
 class LogChannel;
 
 namespace ceph {
-namespace log {
+namespace logging {
   class Graylog;
 }
 }
@@ -182,7 +182,7 @@ private:
   std::string syslog_facility;
   bool log_to_syslog;
   bool log_to_monitors;
-  shared_ptr<ceph::log::Graylog> graylog;
+  shared_ptr<ceph::logging::Graylog> graylog;
 
 
   friend class LogClientTemp;
index 1d677e3e38253fc4e08b0ba96694c9650e8c8ec0..a9208cf6c2a01510cf847037cf18e515d35744a5 100644 (file)
@@ -147,10 +147,10 @@ private:
  * logging-related config changes to the log.
  */
 class LogObs : public md_config_obs_t {
-  ceph::log::Log *log;
+  ceph::logging::Log *log;
 
 public:
-  explicit LogObs(ceph::log::Log *l) : log(l) {}
+  explicit LogObs(ceph::logging::Log *l) : log(l) {}
 
   const char** get_tracked_conf_keys() const {
     static const char *KEYS[] = {
@@ -476,7 +476,7 @@ CephContext::CephContext(uint32_t module_type_, int init_flags_)
   ceph_spin_init(&_feature_lock);
   ceph_spin_init(&_cct_perf_lock);
 
-  _log = new ceph::log::Log(&_conf->subsys);
+  _log = new ceph::logging::Log(&_conf->subsys);
   _log->start();
 
   _log_obs = new LogObs(_log);
index 6bf03b3214b81306d2a9cc7d6a7ce770aeef5533..761094aa99b03910ec0dd2a7841fa8fe2c90b720 100644 (file)
@@ -41,7 +41,7 @@ class CryptoHandler;
 namespace ceph {
   class PluginRegistry;
   class HeartbeatMap;
-  namespace log {
+  namespace logging {
     class Log;
   }
 }
@@ -71,7 +71,7 @@ public:
   void put();
 
   md_config_t *_conf;
-  ceph::log::Log *_log;
+  ceph::logging::Log *_log;
 
   /* init ceph::crypto */
   void init_crypto();
index d844395cba650f12dba555a271e052f6bdcfaac3..1f1787bf0d413b432974a57b9a85e3a7b5f17178 100644 (file)
@@ -210,7 +210,7 @@ private:
   changed_set_t changed;
 
 public:
-  ceph::log::SubsystemMap subsys;
+  ceph::logging::SubsystemMap subsys;
 
   EntityName name;
   string data_dir_option;  ///< data_dir config option, if any
index 9f8fd27dd3d1ea1c1528e394f12035064894c96f..9f715bf501b3b923255e78b77de36b8e016e1f0c 100644 (file)
@@ -57,7 +57,7 @@ public:
       char __array[((v >= -1) && (v <= 200)) ? 0 : -1] __attribute__((unused)); \
     }                                                                  \
     static size_t _log_exp_length=80; \
-    ceph::log::Entry *_dout_e = cct->_log->create_entry(v, sub, &_log_exp_length);     \
+    ceph::logging::Entry *_dout_e = cct->_log->create_entry(v, sub, &_log_exp_length); \
     ostream _dout_os(&_dout_e->m_streambuf);                           \
     CephContext *_dout_cct = cct;                                      \
     std::ostream* _dout = &_dout_os;
index 1b589e1b325cd3c2e8fe1b81f8e39c5659733682..7e2f83401ae6120f3425f3f40c7d14701a98f10b 100644 (file)
@@ -11,7 +11,7 @@
 
 
 namespace ceph {
-namespace log {
+namespace logging {
 
 struct Entry {
   utime_t m_stamp;
index d125540c43b52ac1a68c6f764f67c54391c78484..8170dcb11b7c42dd700a13ad96f62775148d4d01 100644 (file)
@@ -7,7 +7,7 @@
 #include "Entry.h"
 
 namespace ceph {
-namespace log {
+namespace logging {
 
 struct EntryQueue {
   int m_len;
index 29568e7a25d308443ef8a0930e8fa41427911c57..bc19087c78f54c5145672048148699707c614d19 100644 (file)
@@ -34,7 +34,7 @@
 
 
 namespace ceph {
-namespace log {
+namespace logging {
 
 static OnExitManager exit_callbacks;
 
@@ -476,5 +476,5 @@ void Log::inject_segv()
   m_inject_segv = true;
 }
 
-} // ceph::log::
+} // ceph::logging::
 } // ceph::
index e372f9a14ccec07138fee1fe8a15fd9942992ed0..980e90314e1bb10a35c7670b76c4aa591a428fd1 100644 (file)
@@ -11,7 +11,7 @@
 #include "EntryQueue.h"
 
 namespace ceph {
-namespace log {
+namespace logging {
 
 class Graylog;
 class SubsystemMap;
index 06173e6e93ce2f43320b1d12b810b431db93bd8e..a3d31aaa10f75f8e83f8f7042e19f0e9ea1bf87e 100644 (file)
@@ -2,7 +2,7 @@
 #include "SubsystemMap.h"
 
 namespace ceph {
-namespace log {
+namespace logging {
 
 void SubsystemMap::add(unsigned subsys, std::string name, int log, int gather)
 {
index 16b6b72c6a6a58c7dd7b1be273a7d46f27794c5d..9700adc62ece352ca4a2dfb71cedd81e8d0f7921 100644 (file)
@@ -10,7 +10,7 @@
 #include "include/assert.h"
 
 namespace ceph {
-namespace log {
+namespace logging {
 
 struct Subsystem {
   int log_level, gather_level;
index 27052476ea9a1a09a67e9be6ff2f8772227d4a44..618788246a8bbc0e2e33d1983cb8b84c410c4839 100644 (file)
@@ -5,7 +5,7 @@
 #include "common/PrebufferedStreambuf.h"
 #include "SubsystemMap.h"
 
-using namespace ceph::log;
+using namespace ceph::logging;
 
 TEST(Log, Simple)
 {
index 6619e6bb11d8f2cfc914ce8a267ea33850e52927..4c8054ba71422db407b856f0d0cf0c870518ed4b 100644 (file)
@@ -131,7 +131,7 @@ void LogMonitor::update_from_paxos(bool *need_bootstrap)
       }
 
       if (channels.do_log_to_graylog(channel)) {
-       ceph::log::Graylog::Ref graylog = channels.get_graylog(channel);
+       ceph::logging::Graylog::Ref graylog = channels.get_graylog(channel);
        if (graylog) {
          graylog->log_log_entry(&le);
        }
@@ -725,14 +725,14 @@ bool LogMonitor::log_channel_info::do_log_to_syslog(const string &channel) {
   return ret;
 }
 
-ceph::log::Graylog::Ref LogMonitor::log_channel_info::get_graylog(
+ceph::logging::Graylog::Ref LogMonitor::log_channel_info::get_graylog(
     const string &channel)
 {
   generic_dout(25) << __func__ << " for channel '"
                   << channel << "'" << dendl;
 
   if (graylogs.count(channel) == 0) {
-    ceph::log::Graylog::Ref graylog = ceph::log::Graylog::Ref(new ceph::log::Graylog("mon"));
+    ceph::logging::Graylog::Ref graylog = ceph::logging::Graylog::Ref(new ceph::logging::Graylog("mon"));
 
     graylog->set_fsid(g_conf->fsid);
     graylog->set_hostname(g_conf->host);
index c9c6336726fb44970fe63b6fb55b4c12465dbcf3..890829d8c153c04f8c4b8048e2a59258250bc69b 100644 (file)
@@ -31,7 +31,7 @@ class MLog;
 static const string LOG_META_CHANNEL = "$channel";
 
 namespace ceph {
-namespace log {
+namespace logging {
   class Graylog;
 }
 }
@@ -54,7 +54,7 @@ private:
     map<string,string> log_to_graylog_host;
     map<string,string> log_to_graylog_port;
 
-    map<string, shared_ptr<ceph::log::Graylog>> graylogs;
+    map<string, shared_ptr<ceph::logging::Graylog>> graylogs;
     uuid_d fsid;
     string host;
 
@@ -125,7 +125,7 @@ private:
                              &CLOG_CONFIG_DEFAULT_KEY) == "true");
     }
 
-    shared_ptr<ceph::log::Graylog> get_graylog(const string &channel);
+    shared_ptr<ceph::logging::Graylog> get_graylog(const string &channel);
   } channels;
 
   void update_log_channels();