1 #ifndef __XRDSSILOGGER_HH__
2 #define __XRDSSILOGGER_HH__
53 static void Msg(
const char *pfx,
const char *txt1,
54 const char *txt2=0,
const char *txt3=0);
68 static void Msgf(
const char *pfx,
const char *fmt, ...);
82 static void Msgv(
const char *pfx,
const char *fmt, va_list aP);
92 static void Msgv(
struct iovec *iovP,
int iovN);
111 typedef void (
MCB_t)(
struct timeval const &mtime,
127 #define SSI_LOG(x) {std::cerr <<XrdSSiLogger::TBeg() <<x; XrdSsiLogger::TEnd();}
128 #define SSI_SAY(x) {XrdSSiLogger::TBeg();std::cerr <<x; XrdSsiLogger::TEnd();}
130 static const char *
TBeg();
void() MCB_t(struct timeval const &mtime, unsigned long tID, const char *msg, int mlen)
Length of message text.
static bool SetMCB(MCB_t &mcbP, mcbType mcbt=mcbAll)
static void Msgf(const char *pfx, const char *fmt,...)
static void Msg(const char *pfx, const char *txt1, const char *txt2=0, const char *txt3=0)
static const char * TBeg()
static void Msgv(const char *pfx, const char *fmt, va_list aP)
XrdSsiLogger()
Constructor and destructor.