XRootD
XrdSysLogger.cc File Reference
#include <fcntl.h>
#include <signal.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <unistd.h>
#include <strings.h>
#include <sys/param.h>
#include <termios.h>
#include <sys/uio.h>
#include "XrdOuc/XrdOucTList.hh"
#include "XrdSys/XrdSysE2T.hh"
#include "XrdSys/XrdSysFD.hh"
#include "XrdSys/XrdSysLogger.hh"
#include "XrdSys/XrdSysLogging.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdSys/XrdSysPthread.hh"
#include "XrdSys/XrdSysTimer.hh"
#include "XrdSys/XrdSysUtils.hh"
#include <poll.h>
+ Include dependency graph for XrdSysLogger.cc:

Go to the source code of this file.

Classes

struct  XrdSysLoggerRP
 

Macros

#define BLAB(x)   std::cerr <<"Logger " <<x <<"!!!" <<std::endl
 

Functions

void * XrdSysLoggerMN (void *carg)
 
void * XrdSysLoggerRT (void *carg)
 

Macro Definition Documentation

◆ BLAB

#define BLAB (   x)    std::cerr <<"Logger " <<x <<"!!!" <<std::endl

Definition at line 106 of file XrdSysLogger.cc.

Function Documentation

◆ XrdSysLoggerMN()

void* XrdSysLoggerMN ( void *  carg)

Definition at line 114 of file XrdSysLogger.cc.

115  {XrdSysLogger::Task *tP = (XrdSysLogger::Task *)carg;
116  while(tP) {tP->Ring(); tP = tP->Next();}
117  return (void *)0;
118  }
virtual void Ring()=0
This method gets called at midnight.

References XrdSysLogger::Task::Next(), and XrdSysLogger::Task::Ring().

Referenced by XrdSysLogger::zHandler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ XrdSysLoggerRT()

void* XrdSysLoggerRT ( void *  carg)

Definition at line 129 of file XrdSysLogger.cc.

130  {XrdSysLoggerRP *rP = (XrdSysLoggerRP *)carg;
131  XrdSysLogger *lp = rP->logger;
132  rP->active.Post();
133  lp->zHandler();
134  return (void *)0;
135  }
XrdSysLogger * logger
XrdSysSemaphore active

References XrdSysLoggerRP::active, XrdSysLoggerRP::logger, XrdSysSemaphore::Post(), and XrdSysLogger::zHandler().

Referenced by XrdSysLogger::Bind().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: