Handle diagnostics.
More...
#include <XrdClLog.hh>
|
| Log () |
| Constructor. More...
|
|
| ~Log () |
|
void | Error (uint64_t topic, const char *format,...) |
| Report an error. More...
|
|
void | Warning (uint64_t topic, const char *format,...) |
| Report a warning. More...
|
|
void | Info (uint64_t topic, const char *format,...) |
| Print an info. More...
|
|
void | Debug (uint64_t topic, const char *format,...) |
| Print a debug message. More...
|
|
void | Dump (uint64_t topic, const char *format,...) |
| Print a dump message. More...
|
|
void | Say (LogLevel level, uint64_t topic, const char *format, va_list list) |
|
void | SetLevel (LogLevel level) |
| Set the level of the messages that should be sent to the destination. More...
|
|
void | SetLevel (const std::string &level) |
| Set the level of the messages that should be sent to the destination. More...
|
|
void | SetOutput (LogOut *output) |
| Set the output that should be used. More...
|
|
void | SetMask (LogLevel level, uint64_t mask) |
| Sets the mask for the topics of messages that should be printed. More...
|
|
void | SetMask (const std::string &level, uint64_t mask) |
| Sets the mask for the topics of messages that should be printed. More...
|
|
void | SetTopicName (uint64_t topic, std::string name) |
| Map a topic number to a string. More...
|
|
LogLevel | GetLevel () const |
| Get the log level. More...
|
|
void | SetPid (pid_t pid) |
| Set pid. More...
|
|
|
typedef std::map< uint64_t, std::string > | TopicMap |
|
◆ TopicMap
◆ LogLevel
Log levels.
Enumerator |
---|
NoMsg | report nothing
|
ErrorMsg | report errors
|
WarningMsg | report warnings
|
InfoMsg | print info
|
DebugMsg | print debug info
|
DumpMsg | print details of the request and responses
|
◆ Log()
◆ ~Log()
◆ Debug()
void XrdCl::Log::Debug |
( |
uint64_t |
topic, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ Dump()
void XrdCl::Log::Dump |
( |
uint64_t |
topic, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ Error()
void XrdCl::Log::Error |
( |
uint64_t |
topic, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ GetLevel()
Get the log level.
References pLevel.
◆ Info()
void XrdCl::Log::Info |
( |
uint64_t |
topic, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ LogLevelToString()
std::string XrdCl::Log::LogLevelToString |
( |
LogLevel |
level | ) |
|
|
private |
◆ Say()
void XrdCl::Log::Say |
( |
LogLevel |
level, |
|
|
uint64_t |
topic, |
|
|
const char * |
format, |
|
|
va_list |
list |
|
) |
| |
Always print the message
- Parameters
-
level | log level |
type | topic of the message |
format | format string - the same as in printf |
list | list of arguments |
◆ SetLevel() [1/2]
void XrdCl::Log::SetLevel |
( |
LogLevel |
level | ) |
|
|
inline |
Set the level of the messages that should be sent to the destination.
References pLevel.
Referenced by SetLevel().
◆ SetLevel() [2/2]
void XrdCl::Log::SetLevel |
( |
const std::string & |
level | ) |
|
|
inline |
◆ SetMask() [1/2]
void XrdCl::Log::SetMask |
( |
LogLevel |
level, |
|
|
uint64_t |
mask |
|
) |
| |
|
inline |
Sets the mask for the topics of messages that should be printed.
References pMask.
◆ SetMask() [2/2]
void XrdCl::Log::SetMask |
( |
const std::string & |
level, |
|
|
uint64_t |
mask |
|
) |
| |
|
inline |
◆ SetOutput()
void XrdCl::Log::SetOutput |
( |
LogOut * |
output | ) |
|
|
inline |
Set the output that should be used.
References pOutput.
◆ SetPid()
void XrdCl::Log::SetPid |
( |
pid_t |
pid | ) |
|
|
inline |
Set pid.
References pPid.
◆ SetTopicName()
void XrdCl::Log::SetTopicName |
( |
uint64_t |
topic, |
|
|
std::string |
name |
|
) |
| |
Map a topic number to a string.
◆ StringToLogLevel()
bool XrdCl::Log::StringToLogLevel |
( |
const std::string & |
strLevel, |
|
|
LogLevel & |
level |
|
) |
| |
|
private |
◆ TopicToString()
std::string XrdCl::Log::TopicToString |
( |
uint64_t |
topic | ) |
|
|
private |
◆ Warning()
void XrdCl::Log::Warning |
( |
uint64_t |
topic, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ pLevel
◆ pMask
uint64_t XrdCl::Log::pMask[DumpMsg+1] |
|
private |
◆ pOutput
◆ pPid
◆ pTopicMap
◆ pTopicMaxLength
uint32_t XrdCl::Log::pTopicMaxLength |
|
private |
The documentation for this class was generated from the following file: