diff --git a/src/XrdCl/XrdClLog.hh b/src/XrdCl/XrdClLog.hh index bde0766ef1c..a170a65018d 100644 --- a/src/XrdCl/XrdClLog.hh +++ b/src/XrdCl/XrdClLog.hh @@ -79,6 +79,7 @@ namespace XrdCl //------------------------------------------------------------------------ void Close(); virtual void Write( const std::string &message ); + private: int pFileDes; }; @@ -222,6 +223,17 @@ namespace XrdCl //------------------------------------------------------------------------ void SetTopicName( uint64_t topic, std::string name ); + + //------------------------------------------------------------------------ + //! Register new topic + //------------------------------------------------------------------------ + inline uint64_t RegisterTopic( const std::string &topic ) + { + uint64_t tpcnb = pTopicMap.rbegin()->first << 1; + SetTopicName( tpcnb, topic ); + return tpcnb; + } + //------------------------------------------------------------------------ //! Get the log level //------------------------------------------------------------------------