1 #ifndef __SYS_ERROR_H__
2 #define __SYS_ERROR_H__
51 {
return (
char *)(mnum < base_msgnum || mnum > last_msgnum
52 ? 0 : msg_text[mnum - base_msgnum]);
65 const char **msg_text;
115 static const char *
ec2text(
int ecode);
123 int Emsg(
const char *esfx,
int ecode,
const char *text1,
const char *text2=0);
127 void Emsg(
const char *esfx,
const char *text1,
129 const char *text3=0);
133 inline void Log(
int mask,
const char *esfx,
137 {
if (mask & msgMask)
Emsg(esfx, text1, text2, text3);}
149 void Say(
const char *text1,
const char *text2=0,
const char *txt3=0,
150 const char *text4=0,
const char *text5=0,
const char *txt6=0);
161 {
const char *oldpfx = epfx;
162 epfx = prefix; epfxlen = strlen(epfx);
168 void TBeg(
const char *txt1=0,
const char *txt2=0,
const char *txt3=0);
XrdSysError_Table(int base, int last, const char **text)
int Emsg(const char *esfx, int ecode, const char *text1, const char *text2=0)
void TBeg(const char *txt1=0, const char *txt2=0, const char *txt3=0)
XrdSysError(XrdSysLogger *lp, const char *ErrPrefix="sys")
static void addTable(XrdSysError_Table *etp)
void Say(const char *text1, const char *text2=0, const char *txt3=0, const char *text4=0, const char *text5=0, const char *txt6=0)
void setMsgMask(int mask)
static const char * ec2text(int ecode)
XrdSysLogger * logger(XrdSysLogger *lp=0)
const char * SetPrefix(const char *prefix)
void Log(int mask, const char *esfx, const char *text1, const char *text2=0, const char *text3=0)