#include <XrdSysLogger.hh>
Public Member Functions | |
| XrdSysLogger (int ErrFD=STDERR_FILENO, int xrotate=1) | |
| ~XrdSysLogger () | |
| int | Bind (const char *path, int intsec=0) |
| void | Flush () |
| int | originalFD () |
| void | Put (int iovcnt, struct iovec *iov) |
| void | setKeep (long long knum) |
| void | setRotate (int onoff) |
| int | Time (char *tbuff) |
| char * | traceBeg () |
| char | traceEnd () |
| int | xlogFD () |
Private Member Functions | |
| void | putEmsg (char *msg, int msz) |
| int | ReBind (int dorename=1) |
| void | Trim () |
Private Attributes | |
| XrdSysMutex | Logger_Mutex |
| long long | eKeep |
| char | TBuff [24] |
| int | eFD |
| int | baseFD |
| char * | ePath |
| char | Filesfx [8] |
| time_t | eNTC |
| int | eInt |
| time_t | eNow |
| int | doLFR |
Static Private Attributes | |
| static int | extLFD [4] |
Definition at line 28 of file XrdSysLogger.hh.
| XrdSysLogger::XrdSysLogger | ( | int | ErrFD = STDERR_FILENO, |
|
| int | xrotate = 1 | |||
| ) |
| XrdSysLogger::~XrdSysLogger | ( | ) | [inline] |
| int XrdSysLogger::Bind | ( | const char * | path, | |
| int | intsec = 0 | |||
| ) |
Definition at line 76 of file XrdSysLogger.cc.
References eInt, eNow, eNTC, ePath, free(), XrdSysTimer::Midnight(), and ReBind().
Referenced by XrdConfig::Configure(), XrdProofdProofServMgr::Create(), main(), XrdROOTMgr::Validate(), and XrdSysLogger().
| void XrdSysLogger::Flush | ( | ) | [inline] |
| int XrdSysLogger::originalFD | ( | ) | [inline] |
Definition at line 46 of file XrdSysLogger.hh.
References baseFD.
Referenced by XrdSysError::baseFD(), and XrdOucStream::Exec().
| void XrdSysLogger::Put | ( | int | iovcnt, | |
| struct iovec * | iov | |||
| ) |
Definition at line 101 of file XrdSysLogger.cc.
References eFD, eInt, eNow, eNTC, int, iovec::iov_base, iovec::iov_len, XrdSysMutex::Lock(), Logger_Mutex, ReBind(), Time(), XrdSysMutex::UnLock(), and writev.
Referenced by XrdSysError::Emsg(), and XrdSysError::Say().
Definition at line 55 of file XrdSysLogger.hh.
References eKeep.
Referenced by XrdConfig::Configure(), and main().
| void XrdSysLogger::setRotate | ( | int | onoff | ) | [inline] |
| int XrdSysLogger::Time | ( | char * | tbuff | ) |
Definition at line 136 of file XrdSysLogger.cc.
References eNow, i, localtime_r, XrdSysThread::Num(), and snprintf.
Referenced by Put(), putEmsg(), and traceBeg().
| char* XrdSysLogger::traceBeg | ( | ) | [inline] |
Definition at line 68 of file XrdSysLogger.hh.
References XrdSysMutex::Lock(), Logger_Mutex, TBuff, and Time().
Referenced by XrdSysError::TBeg().
| char XrdSysLogger::traceEnd | ( | ) | [inline] |
Definition at line 69 of file XrdSysLogger.hh.
References Logger_Mutex, and XrdSysMutex::UnLock().
Referenced by XrdSysError::TEnd().
| int XrdSysLogger::xlogFD | ( | ) |
Definition at line 158 of file XrdSysLogger.cc.
| void XrdSysLogger::putEmsg | ( | char * | msg, | |
| int | msz | |||
| ) | [private] |
Definition at line 169 of file XrdSysLogger.cc.
References eFD, int, iovec::iov_base, iovec::iov_len, Time(), and writev.
Referenced by Trim().
| int XrdSysLogger::ReBind | ( | int | dorename = 1 |
) | [private] |
| void XrdSysLogger::Trim | ( | ) | [private] |
XrdSysMutex XrdSysLogger::Logger_Mutex [private] |
int XrdSysLogger::extLFD [static, private] |
Definition at line 79 of file XrdSysLogger.hh.
long long XrdSysLogger::eKeep [private] |
Definition at line 80 of file XrdSysLogger.hh.
Referenced by ReBind(), setKeep(), Trim(), and XrdSysLogger().
char XrdSysLogger::TBuff[24] [private] |
int XrdSysLogger::eFD [private] |
Definition at line 82 of file XrdSysLogger.hh.
Referenced by Flush(), Put(), putEmsg(), ReBind(), and XrdSysLogger().
int XrdSysLogger::baseFD [private] |
char* XrdSysLogger::ePath [private] |
Definition at line 84 of file XrdSysLogger.hh.
Referenced by Bind(), ReBind(), Trim(), XrdSysLogger(), and ~XrdSysLogger().
char XrdSysLogger::Filesfx[8] [private] |
time_t XrdSysLogger::eNTC [private] |
Definition at line 86 of file XrdSysLogger.hh.
Referenced by Bind(), Put(), ReBind(), and XrdSysLogger().
int XrdSysLogger::eInt [private] |
Definition at line 87 of file XrdSysLogger.hh.
Referenced by Bind(), Put(), ReBind(), and XrdSysLogger().
time_t XrdSysLogger::eNow [private] |
Definition at line 88 of file XrdSysLogger.hh.
Referenced by Bind(), Put(), ReBind(), Time(), and XrdSysLogger().
int XrdSysLogger::doLFR [private] |
Definition at line 89 of file XrdSysLogger.hh.
Referenced by ReBind(), setRotate(), and XrdSysLogger().
1.5.1