xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
XrdSysLogging Class Reference

#include <XrdSysLogging.hh>

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
logrReference to the logger object.
parmsReference 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 
)
staticprivate
static bool XrdSysLogging::EMsg ( XrdSysLogger logr,
const char *  msg 
)
staticprivate
static bool XrdSysLogging::Forward ( struct timeval  mtime,
unsigned long  tID,
struct iovec *  iov,
int  iovcnt 
)
static

Forward a log message to a plugin.

Parameters
mtimeThe time the message was generated.
tIDThe thread ID that issued the message.
iovThe vector describing what to forward.
iovcntThe 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 
)
staticprivate
static void* XrdSysLogging::Send2PI ( void *  arg)
staticprivate

Member Data Documentation

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

The documentation for this class was generated from the following file: