XRootD
Loading...
Searching...
No Matches
XrdClHttpPlugInUtil.cc
Go to the documentation of this file.
1
4
6
7#include <mutex>
8
9#include "XrdCl/XrdClLog.hh"
10
11static std::once_flag logging_topic_init;
12
13namespace XrdCl {
14
15void 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}
static std::once_flag logging_topic_init
Handle diagnostics.
Definition XrdClLog.hh:101
void SetTopicName(uint64_t topic, std::string name)
Map a topic number to a string.
Definition XrdClLog.cc:163
void SetUpLogging(Log *logger)
static const uint64_t kLogXrdClHttp