XRootD
XrdClHttpPlugInUtil.cc
Go to the documentation of this file.
1
5
#include "
XrdClHttp/XrdClHttpPlugInUtil.hh
"
6
7
#include <mutex>
8
9
#include "
XrdCl/XrdClLog.hh
"
10
11
static
std::once_flag
logging_topic_init
;
12
13
namespace
XrdCl
{
14
15
void
SetUpLogging
(
Log
* logger) {
16
// Assert that there is no existing topic
17
std::call_once(
logging_topic_init
, [logger] {
18
if
(logger) {
19
logger->
SetTopicName
(
kLogXrdClHttp
,
"XrdClHttp"
);
20
}
21
});
22
}
23
24
}
logging_topic_init
static std::once_flag logging_topic_init
Definition:
XrdClHttpPlugInUtil.cc:11
XrdClHttpPlugInUtil.hh
XrdClLog.hh
XrdCl::Log
Handle diagnostics.
Definition:
XrdClLog.hh:101
XrdCl::Log::SetTopicName
void SetTopicName(uint64_t topic, std::string name)
Map a topic number to a string.
Definition:
XrdClLog.cc:163
XrdCl
Definition:
XrdClAction.hh:34
XrdCl::SetUpLogging
void SetUpLogging(Log *logger)
Definition:
XrdClHttpPlugInUtil.cc:15
XrdCl::kLogXrdClHttp
static const uint64_t kLogXrdClHttp
Definition:
XrdClHttpPlugInUtil.hh:16
XrdClHttp
XrdClHttpPlugInUtil.cc
Generated by
1.9.1