diff options
-rw-r--r-- | p2pvr/daemonbase/p2LoggerWrapper.cpp | 6 | ||||
-rw-r--r-- | p2pvr/daemonbase/p2LoggerWrapper.h | 11 |
2 files changed, 12 insertions, 5 deletions
diff --git a/p2pvr/daemonbase/p2LoggerWrapper.cpp b/p2pvr/daemonbase/p2LoggerWrapper.cpp index 60ec191..419caa2 100644 --- a/p2pvr/daemonbase/p2LoggerWrapper.cpp +++ b/p2pvr/daemonbase/p2LoggerWrapper.cpp @@ -37,3 +37,9 @@ P2LoggerWrapper::cloneWithPrefix(const std::string & p) return new P2LoggerWrapper(prefix + "-" + p); } +std::string +P2LoggerWrapper::getPrefix() +{ + return prefix; +} + diff --git a/p2pvr/daemonbase/p2LoggerWrapper.h b/p2pvr/daemonbase/p2LoggerWrapper.h index 8febda5..e8de1e8 100644 --- a/p2pvr/daemonbase/p2LoggerWrapper.h +++ b/p2pvr/daemonbase/p2LoggerWrapper.h @@ -7,12 +7,13 @@ class P2LoggerWrapper : public Ice::Logger { public: P2LoggerWrapper(const std::string & prefix = std::string()); - void print(const std::string & message); - void trace(const std::string & cat, const std::string & message); - void warning(const std::string & message); - void error(const std::string & message); + void print(const std::string & message) override; + void trace(const std::string & cat, const std::string & message) override; + void warning(const std::string & message) override; + void error(const std::string & message) override; - Ice::LoggerPtr cloneWithPrefix(const std::string & prefix); + Ice::LoggerPtr cloneWithPrefix(const std::string & prefix) override; + std::string getPrefix(); private: const std::string prefix; |