XrdSysLogging Class Reference

#include <XrdSysLogging.hh>

List of all members.

Classes

struct  MsgBuff
struct  Parms
 Parameters to be passed to configure. More...

Public Member Functions

 XrdSysLogging ()
 ~XrdSysLogging ()

Static Public Member Functions

static bool Configure (XrdSysLogger &logr, Parms &parms)
static bool Forward (struct timeval mtime, unsigned long tID, struct iovec *iov, int iovcnt)

Static Private Member Functions

static int CopyTrunc (char *mbuff, struct iovec *iov, int iovcnt)
static bool EMsg (XrdSysLogger &logr, const char *msg)
static MsgBuffgetMsg (char **msgTxt, bool cont)
static void * Send2PI (void *arg)

Static Private Attributes

static const int msgOff = sizeof(MsgBuff)
static const int mbDwords = (sizeof(MsgBuff)+7)/8*8
static const int maxMsgLen = SHRT_MAX
static pthread_t lpiTID
static bool lclOut
static bool rmtOut

Constructor & Destructor Documentation

XrdSysLogging::XrdSysLogging (  )  [inline]

Constructor and destructor

XrdSysLogging::~XrdSysLogging (  )  [inline]

Member Function Documentation

static bool XrdSysLogging::Configure ( XrdSysLogger logr,
Parms parms 
) [static]

Configure the logger object using the parameters above.

Parameters:
logr Reference to the logger object.
parms Reference to the parameters.
Returns:
true if successful and false if log could not be configured.
static int XrdSysLogging::CopyTrunc ( char *  mbuff,
struct iovec *  iov,
int  iovcnt 
) [static, private]
static bool XrdSysLogging::EMsg ( XrdSysLogger logr,
const char *  msg 
) [static, private]
static bool XrdSysLogging::Forward ( struct timeval  mtime,
unsigned long  tID,
struct iovec *  iov,
int  iovcnt 
) [static]

Forward a log message to a plugin.

Parameters:
mtime The time the message was generated.
tID The thread ID that issued the message.
iov The vector describing what to forward.
iovcnt The number of elements in iov vector.
Returns:
false if the message needs to also be placed in a local log file. true if all processing has completed.
static MsgBuff* XrdSysLogging::getMsg ( char **  msgTxt,
bool  cont 
) [static, private]
static void* XrdSysLogging::Send2PI ( void *  arg  )  [static, private]

Member Data Documentation

bool XrdSysLogging::lclOut [static, private]
pthread_t XrdSysLogging::lpiTID [static, private]
const int XrdSysLogging::maxMsgLen = SHRT_MAX [static, private]
const int XrdSysLogging::mbDwords = (sizeof(MsgBuff)+7)/8*8 [static, private]
const int XrdSysLogging::msgOff = sizeof(MsgBuff) [static, private]
bool XrdSysLogging::rmtOut [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 4 Sep 2020 for xrootd by  doxygen 1.6.1