1 #ifndef __SYS_LOGGING_H__
2 #define __SYS_LOGGING_H__
97 static bool Forward(
struct timeval mtime,
unsigned long tID,
98 struct iovec *
iov,
int iovcnt);
102 {
struct timeval msgtod;
105 unsigned short buffsz;
109 static const int msgOff =
sizeof(MsgBuff);
110 static const int mbDwords = (
sizeof(MsgBuff)+7)/8*8;
111 static const int maxMsgLen = SHRT_MAX;
113 static int CopyTrunc(
char *mbuff,
struct iovec *
iov,
int iovcnt);
115 static MsgBuff *getMsg(
char **msgTxt,
bool cont);
116 static void *Send2PI(
void *arg);
118 static pthread_t lpiTID;
void(* XrdSysLogPI_t)(struct timeval const &mtime, unsigned long tID, const char *msg, int mlen)
static bool Forward(struct timeval mtime, unsigned long tID, struct iovec *iov, int iovcnt)
static bool Configure(XrdSysLogger &logr, Parms &parms)
Parameters to be passed to configure.
XrdSysLogPI_t logpi
-> log plugin object or nil if none
int keepV
log keep argument
const char * logfn
-> log file name or nil if none.
bool hiRes
log using high resolution timestamp
int bufsz
size of message buffer, -1 default, or 0