xrootd
Loading...
Searching...
No Matches
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::XrdSysLogging ( )
inline

Constructor and destructor

◆ ~XrdSysLogging()

XrdSysLogging::~XrdSysLogging ( )
inline

Member Function Documentation

◆ Configure()

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.

◆ CopyTrunc()

static int XrdSysLogging::CopyTrunc ( char *  mbuff,
struct iovec *  iov,
int  iovcnt 
)
staticprivate

◆ EMsg()

static bool XrdSysLogging::EMsg ( XrdSysLogger logr,
const char *  msg 
)
staticprivate

◆ Forward()

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.

◆ getMsg()

static MsgBuff * XrdSysLogging::getMsg ( char **  msgTxt,
bool  cont 
)
staticprivate

◆ Send2PI()

static void * XrdSysLogging::Send2PI ( void *  arg)
staticprivate

Member Data Documentation

◆ lclOut

bool XrdSysLogging::lclOut
staticprivate

◆ lpiTID

pthread_t XrdSysLogging::lpiTID
staticprivate

◆ maxMsgLen

const int XrdSysLogging::maxMsgLen = SHRT_MAX
staticprivate

◆ mbDwords

const int XrdSysLogging::mbDwords = (sizeof(MsgBuff)+7)/8*8
staticprivate

◆ msgOff

const int XrdSysLogging::msgOff = sizeof(MsgBuff)
staticprivate

◆ rmtOut

bool XrdSysLogging::rmtOut
staticprivate

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