19 #ifndef __XRD_CL_LOG_HH__
20 #define __XRD_CL_LOG_HH__
46 virtual void Write(
const std::string &message ) = 0;
61 bool Open(
const std::string &fileName );
67 virtual void Write(
const std::string &message );
78 virtual void Write(
const std::string &message );
109 for(
int i = 0; i < maxMask; ++i )
110 pMask[i] = 0xffffffffffffffffULL;
124 void Error( uint64_t topic,
const char *format, ... )
133 va_start( argList, format );
134 Say( ErrorMsg, topic, format, argList );
141 void Warning( uint64_t topic,
const char *format, ... )
150 va_start( argList, format );
151 Say( WarningMsg, topic, format, argList );
158 void Info( uint64_t topic,
const char *format, ... )
167 va_start( argList, format );
168 Say( InfoMsg, topic, format, argList );
175 void Debug( uint64_t topic,
const char *format, ... )
184 va_start( argList, format );
185 Say( DebugMsg, topic, format, argList );
192 void Dump( uint64_t topic,
const char *format, ... )
201 va_start( argList, format );
202 Say( DumpMsg, topic, format, argList );
214 void Say(
LogLevel level, uint64_t topic,
const char *format, va_list list );
254 void SetMask(
const std::string &level, uint64_t mask )
288 #endif // __XRD_CL_LOG_HH__