XRootD
XrdSysError Class Reference

#include <XrdSysError.hh>

+ Collaboration diagram for XrdSysError:

Public Member Functions

 XrdSysError (XrdSysLogger *lp, const char *ErrPrefix="sys")
 
 ~XrdSysError ()
 
int baseFD ()
 
int ec2errno (int ecode)
 
void Emsg (const char *esfx, const char *text1, const char *text2=0, const char *text3=0)
 
int Emsg (const char *esfx, int ecode, const char *text1, const char *text2=0)
 
int getMsgMask ()
 
void Log (int mask, const char *esfx, const char *text1, const char *text2=0, const char *text3=0)
 
XrdSysLoggerlogger (XrdSysLogger *lp=0)
 
void Say (const char *text1, const char *text2=0, const char *txt3=0, const char *text4=0, const char *text5=0, const char *txt6=0)
 
void setMsgMask (int mask)
 
const char * SetPrefix (const char *prefix)
 
void TBeg (const char *txt1=0, const char *txt2=0, const char *txt3=0)
 
void TEnd ()
 

Static Public Member Functions

static void addTable (XrdSysError_Table *etp)
 
static void addTable (XrdSysError_Table_Errno *etp)
 
static const char * ec2text (int ecode)
 

Detailed Description

Definition at line 117 of file XrdSysError.hh.

Constructor & Destructor Documentation

◆ XrdSysError()

XrdSysError::XrdSysError ( XrdSysLogger lp,
const char *  ErrPrefix = "sys" 
)
inline

Definition at line 120 of file XrdSysError.hh.

121  : epfx(0),
122  epfxlen(0),
123  msgMask(-1),
124  Logger(lp)
125  { SetPrefix(ErrPrefix); }
const char * SetPrefix(const char *prefix)
Definition: XrdSysError.hh:194

References SetPrefix().

+ Here is the call graph for this function:

◆ ~XrdSysError()

XrdSysError::~XrdSysError ( )
inline

Definition at line 127 of file XrdSysError.hh.

127 {}

Member Function Documentation

◆ addTable() [1/2]

static void XrdSysError::addTable ( XrdSysError_Table etp)
inlinestatic

Definition at line 134 of file XrdSysError.hh.

134 {etp->next = etab; etab = etp;}

Referenced by XrdOssSys::Configure().

+ Here is the caller graph for this function:

◆ addTable() [2/2]

static void XrdSysError::addTable ( XrdSysError_Table_Errno etp)
inlinestatic

Definition at line 136 of file XrdSysError.hh.

136 {etp->next = etab_errno; etab_errno = etp;}

◆ baseFD()

int XrdSysError::baseFD ( )

Definition at line 74 of file XrdSysError.cc.

74 {return Logger->originalFD();}

References XrdSysLogger::originalFD().

Referenced by XrdOucUtils::Undercover().

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

◆ ec2errno()

int XrdSysError::ec2errno ( int  ecode)

Definition at line 96 of file XrdSysError.cc.

97 {
98  int xcode = 0;
99  XrdSysError_Table_Errno *etp = etab_errno;
100 
101  int sign = (ecode < 0 ? -1 : 1);
102  int absE = ecode * sign;
103 
104  while ((etp != 0) && !(xcode = etp->Lookup(absE)))
105  etp = etp->next;
106 
107  // if errcode is mapped return
108  // otherwise return the original err code
109  return xcode ? xcode * sign : ecode;
110 }
int Lookup(int mnum)
Definition: XrdSysError.hh:51

References XrdSysError_Table_Errno::Lookup().

Referenced by XrdOfs::Emsg().

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

◆ ec2text()

const char * XrdSysError::ec2text ( int  ecode)
static

Definition at line 80 of file XrdSysError.cc.

81 {
82  int xcode;
83  const char *etxt = 0;
84  XrdSysError_Table *etp = etab;
85 
86  xcode = (ecode < 0 ? -ecode : ecode);
87  while((etp != 0) && !(etxt = etp->Lookup(xcode))) etp = etp->next;
88  if (!etxt) etxt = XrdSysE2T(xcode);
89  return etxt;
90 }
const char * XrdSysE2T(int errcode)
Definition: XrdSysE2T.cc:104
char * Lookup(int mnum)
Definition: XrdSysError.hh:78

References XrdSysError_Table::Lookup(), and XrdSysE2T().

Referenced by XrdBwm::Emsg(), Emsg(), and XrdOucERoute::Format().

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

◆ Emsg() [1/2]

void XrdSysError::Emsg ( const char *  esfx,
const char *  text1,
const char *  text2 = 0,
const char *  text3 = 0 
)

Definition at line 138 of file XrdSysError.cc.

141 {
142  struct iovec iov[16];
143  int iovpnt = 0;
144 
145  Set_IOV_Item(0,0); // 0
146  if (epfx && epfxlen) Set_IOV_Item(epfx, epfxlen); // 1
147  if (esfx ) Set_IOV_Buff(esfx); // 2
148  Set_IOV_Item(": ", 2); // 3
149  Set_IOV_Buff(txt1); // 4
150  if (txt2 && txt2[0]){Set_IOV_Item(" ", 1); // 5
151  Set_IOV_Buff(txt2);} // 6
152  if (txt3 && txt3[0]){Set_IOV_Item(" ", 1); // 7
153  Set_IOV_Buff(txt3);} // 8
154  Set_IOV_Item("\n", 1); // 9
155  Logger->Put(iovpnt, iov);
156 }
#define Set_IOV_Item(x, y)
Definition: XrdSysError.cc:57
#define Set_IOV_Buff(x)
Definition: XrdSysError.cc:60
void Put(int iovcnt, struct iovec *iov)
XrdSysLogger Logger
Definition: XrdGlobals.cc:47

References XrdGlobal::Logger, XrdSysLogger::Put(), Set_IOV_Buff, and Set_IOV_Item.

+ Here is the call graph for this function:

◆ Emsg() [2/2]

int XrdSysError::Emsg ( const char *  esfx,
int  ecode,
const char *  text1,
const char *  text2 = 0 
)

Definition at line 116 of file XrdSysError.cc.

118 {
119  struct iovec iov[16];
120  int iovpnt = 0;
121  const char *etxt = ec2text(ecode);
122 
123  Set_IOV_Item(0,0); // 0
124  if (epfx && epfxlen) Set_IOV_Item(epfx, epfxlen); // 1
125  if (esfx ) Set_IOV_Buff(esfx); // 2
126  Set_IOV_Item(": Unable to ", 12); // 3
127  Set_IOV_Buff(txt1); // 4
128  if (txt2 && txt2[0]){Set_IOV_Item(" ", 1); // 5
129  Set_IOV_Buff(txt2); } // 6
130  Set_IOV_Item("; ", 2); // 7
131  Set_IOV_Buff(etxt); // 8
132  Set_IOV_Item("\n", 1); // 9
133  Logger->Put(iovpnt, iov);
134 
135  return ecode;
136 }
static const char * ec2text(int ecode)
Definition: XrdSysError.cc:80

References ec2text(), XrdGlobal::Logger, XrdSysLogger::Put(), Set_IOV_Buff, and Set_IOV_Item.

Referenced by XrdOssStats::FileSystem::FileSystem(), XrdNetMsg::XrdNetMsg(), XrdOssArcBackup::XrdOssArcBackup(), XrdOssArcStopMon::XrdOssArcStopMon(), XrdPoll::XrdPoll(), XrdTlsTempCA::XrdTlsTempCA(), XrdXrootdMonitor::XrdXrootdMonitor(), XrdNetMsg::~XrdNetMsg(), XrdOssArcStopMon::~XrdOssArcStopMon(), XrdXrootdPgwFob::~XrdXrootdPgwFob(), XrdOuca2x::a2fm(), XrdOuca2x::a2i(), XrdOuca2x::a2ll(), XrdOuca2x::a2p(), XrdOuca2x::a2sn(), XrdOuca2x::a2sp(), XrdOuca2x::a2sz(), XrdOuca2x::a2tm(), XrdOuca2x::a2vp(), XrdNetSocket::Accept(), XrdInet::Accept(), XrdNet::Accept(), Macaroons::Authz::Access(), XrdFrmCns::Add(), XrdOfsPoscq::Add(), XrdCmsPrepare::Add(), XrdFrcReqFile::Add(), XrdFrmXfrQueue::Add(), XrdCmsCluster::Add(), XrdCmsManager::Add(), XrdXrootdFileTable::Add(), XrdCmsClustID::AddNode(), XrdOssSpace::Adjust(), XrdOssSys::AioInit(), XrdCmsProtocol::Alloc(), XrdCmsKeyItem::Alloc(), XrdCmsJob::Alloc(), XrdLinkCtl::Alloc(), XrdOssArcBackup::Archive(), XrdOssArcCompose::ArcMember(), XrdOssArcCompose::ArcPath(), XrdCmsSecurity::Authenticate(), XrdDigAuth::Authorize(), XrdOfsTPC::Authorize(), XrdNetPMarkCfg::Begin(), XrdNet::Bind(), XrdOssArcBackupTask::BkpXeq(), XrdCmsCluster::BlackList(), XrdPfc::Cache::blocksize_str2value(), XrdOssSys::BreakLink(), XrdOssArcConfig::BuildPath(), XrdCksManOss::Calc(), XrdCksManager::Calc(), XrdFrcReqFile::Can(), XrdSecProtParm::Cat(), XrdAccAuthFile::Changed(), XrdOssArc::Chmod(), XrdOucPsx::ClientConfig(), XrdLinkXeq::Close(), XrdOfsPoscq::Commit(), Macaroons::Handler::Config(), XrdPfc::Cache::Config(), XrdOssStats::FileSystem::Config(), XrdCksManager::Config(), XrdNetPMarkCfg::Config(), XrdAccConfig::ConfigDB(), BlacklistDecision::ConfigDecision(), XrdOucLogging::configLog(), XrdPssSys::ConfigMapID(), XrdOssSys::ConfigProc(), XrdPfcPurgeQuota::ConfigPurgePin(), XrdOssSys::ConfigStage(), XrdOssSys::ConfigStageC(), XrdHttpProtocol::Configure(), XrdXrootdProtocol::Configure(), XrdCephOss::Configure(), XrdOssSys::Configure(), XrdDigAuth::Configure(), XrdCmsFinderRMT::Configure(), XrdCmsFinderTRG::Configure(), XrdCmsRedirLocal::Configure(), XrdCmsClientConfig::Configure(), XrdDigConfig::Configure(), XrdOssArcConfig::Configure(), XrdSsiSfsConfig::Configure(), XrdCmsSecurity::Configure(), XrdThrottle::Configuration::Configure(), XrdConfig::Configure(), XrdFrmConfig::Configure(), XrdBwm::Configure(), XrdOfs::Configure(), XrdVomsMapfile::Configure(), XrdCmsConfig::Configure1(), XrdOssSys::ConfigXeq(), XrdOfs::ConfigXeq(), XrdInet::Connect(), XrdCmsManTree::Connect(), XrdOssCopy::Copy(), XrdSysXAttr::Copy(), XrdOfsChkPnt::Create(), XrdOssSys::Create(), XrdOssArc::Create(), XrdTlsTempCA::TempCAGuard::create(), XrdNetSocket::Create(), XrdCmsPrepare::Del(), XrdOfsPoscq::Del(), XrdPosixFile::DelayedDestroy(), XrdCmsClientMan::delayResp(), XrdOfsChkPnt::Delete(), XrdCmsNode::Delete(), XrdCmsCache::DelFile(), XrdAccAudit::Deny(), XrdPoll::Detach(), XrdPollE::Disable(), XrdPollPoll::Disable(), XrdBwmHandle::Dispatch(), XrdCmsNode::do_Disc(), XrdCmsNode::do_Load(), XrdCmsNode::do_Mv(), XrdCmsNode::do_SelPrep(), XrdCmsNode::do_Status(), XrdPollPoll::doDetach(), XrdOucUtils::doIf(), XrdLinkXeq::DoIt(), XrdCmsConfig::DoIt(), XrdSsiFileReq::DoIt(), XrdOssArcFSMon::DoIt(), XrdOssArcStopMon::DoIt(), XrdXrootdCallBack::Done(), XrdXrootdAioTask::Drain(), TPC::Stream::DumpBuffers(), XrdBwm::Emsg(), XrdDigFS::Emsg(), XrdSfsNative::Emsg(), XrdOfs::Emsg(), XrdSsiUtils::Emsg(), XrdPollE::Enable(), XrdPollPoll::Enable(), XrdBwmLogger::Event(), XrdPollE::Exclude(), XrdPollPoll::Exclude(), XrdCmsProtocol::Execute(), XrdCmsBaseFS::Exists(), XrdOfsTPCAuth::Expired(), XrdOfsTPCInfo::Fail(), XrdOfsTPC::Fatal(), XrdOucProg::Feed(), XrdSsiFileReq::Finalize(), XrdScheduler::Fork(), XrdCmsFinderRMT::Forward(), XrdThrottleManager::FromConfig(), XrdOssFile::Fsync(), XrdOucGatherConf::Gather(), XrdXrootdAioTask::gdFail(), XrdOfsHanXpr::Get(), XrdPfcPurgeQuota::GetBytesToRecover(), XrdSsiScale::getEnt(), XrdAccEntity::GetEntity(), XrdOssSys::GetFile(), XrdAccAuthFile::getID(), XrdNetIF::GetIF(), XrdSysPlugin::getLibrary(), XrdOucStream::GetMyFirstWord(), XrdAccAuthFile::getPP(), XrdAccAuthFile::getRec(), XrdPoll::getRequest(), XrdCmsSecurity::getVnId(), XrdNetSocket::getWindow(), XrdAccAudit::Grant(), XrdCmsSecurity::Identify(), XrdLinkCtl::idleScan(), XrdPollE::Include(), XrdPollPoll::Include(), XrdBuffManager::Init(), XrdCmsMeter::Init(), XrdFrcReqFile::Init(), XrdFrmTransfer::Init(), XrdFrmXfrDaemon::Init(), XrdFrmXfrQueue::Init(), XrdOfsConfigCP::Init(), XrdThrottleManager::Init(), XrdXrootdMonFile::Init(), XrdXrootdMonitor::Init(), XrdCmsSupervisor::Init(), XrdOssSpace::Init(), XrdCksManager::Init(), XrdPssCks::Init(), XrdFrmMonitor::Init(), XrdOssArcFSMon::Init(), XrdFrcCID::Init(), XrdOfsPoscq::Init(), XrdCmsCache::Init(), XrdCmsRRQ::Init(), XrdFrmPurge::Init(), XrdOfsEvr::Init(), XrdXrootdAdmin::Init(), XrdCmsAdmin::InitAREvents(), XrdSecProtParm::Insert(), XrdSsiTaskReal::Kill(), XrdOucN2N::lfn2pfn(), XrdOucN2N::lfn2rfn(), XrdFrcReqFile::List(), XrdOfsPoscq::List(), XrdXrootdPrepare::List(), XrdOucN2NLoader::Load(), XrdProtLoad::Load(), XrdOfsConfigPI::Load(), LoadFS(), XrdThrottleManager::LoadUserLimits(), XrdFrmConfig::LocalPath(), Log(), XrdXrootdPrepare::Log(), XrdXrootdPrepare::Logdel(), XrdFrmConfig::LogicalPath(), XrdCmsAdmin::Login(), XrdXrootdAdmin::Login(), main(), mainConfig(), XrdOucUtils::makeHome(), XrdFrcUtils::makePath(), XrdFrcUtils::makeQDir(), XrdOssMio::Map(), XrdFrmMigrate::Migrate(), XrdOssArc::Mkdir(), XrdCmsAdmin::MonAds(), XrdCmsMeter::Monitor(), XrdSsiLogger::Msg(), XrdSsiLogger::Msgf(), XrdSsiLogger::Msgv(), XrdOssSys::MSS_Closedir(), XrdOssSys::MSS_Create(), XrdOssSys::MSS_Opendir(), XrdOssSys::MSS_Readdir(), XrdOssSys::MSS_Rename(), XrdOssSys::MSS_Stat(), XrdOssSys::MSS_Unlink(), XrdOssSys::MSS_Xeq(), XrdSecProtector::New4Server(), XrdPoll::newPoller(), XrdCmsAdmin::Notes(), XrdOfsEvs::Notify(), XrdNetMsg::OK2Send(), XrdOssFile::Open(), XrdSsiFileSess::open(), XrdOfsFile::open(), XrdOssArcFile::Open(), XrdNetSocket::Open(), XrdOssArcDir::Opendir(), XrdCmsParser::Pack(), XrdOucMsubs::Parse(), XrdOfsConfigPI::Parse(), XrdOfsConfigCP::Parse(), XrdOfsEvs::Parse(), XrdOucPsx::ParseCache(), XrdOucPsx::ParseCio(), XrdOucPsx::ParseCLib(), XrdOucExport::ParseDefs(), XrdHttpProtocol::parseHeader2CGI(), XrdOucUtils::parseHome(), XrdOucPsx::ParseINet(), XrdCksConfig::ParseLib(), XrdOucUtils::parseLib(), XrdCmsUtils::ParseMan(), XrdCmsUtils::ParseManPort(), XrdOucPsx::ParseMLib(), XrdOucPsx::ParseNLib(), XrdCksConfig::ParseOpt(), XrdOucExport::ParsePath(), XrdOucPsx::ParseSet(), XrdOucPsx::ParseTrace(), XrdLinkXeq::Peek(), XrdNetSocket::Peername(), XrdOucUtils::PidFile(), XrdFrmXfrDaemon::Pong(), XrdProtLoad::Port(), XrdOfsHandle::PoscSet(), XrdCmsPrepare::Prepare(), XrdCmsFinderRMT::Prepare(), XrdFrmXfrAgent::Process(), XrdXrootdProtocol::Process2(), TPC::TPCHandler::ProcessReq(), XrdFrmPurge::Purge(), XrdOssSpace::Quotas(), XrdOssFile::Read(), XrdHttpMon::Record(), XrdLinkXeq::Recv(), XrdLinkXeq::RecvAll(), XrdOfsEvr::recvEvents(), XrdLinkXeq::RecvIOV(), XrdCmsProtocol::Recycle(), XrdProtLoad::Recycle(), XrdOssMio::Recycle(), XrdFrmFileset::Refresh(), XrdNetRefresh::Register(), XrdCmsAdmin::Relay(), XrdOssArcFSMon::Release(), XrdThrottleManager::ReloadUserLimits(), XrdOssSys::Reloc(), XrdOssArc::Remdir(), XrdFrmConfig::RemotePath(), XrdCmsCluster::Remove(), XrdCmsManager::Remove(), XrdOssSys::Rename(), XrdOssArc::Rename(), XrdOssSys::RenameLink(), XrdOssSys::RenameLink3(), XrdXrootdTpcMon::Report(), XrdCmsManager::Rerun(), XrdCmsPrepare::Reset(), XrdOfsChkPnt::Restore(), XrdOfsTPC::Restrict(), XrdNetMsg::retErr(), XrdBwmHandle::Retire(), XrdOfsHandle::Retire(), XrdOucERoute::Route(), XrdScheduler::Run(), XrdCmsMeter::Run(), XrdOfsPrepGPIReal::PrepGRun::Run(), XrdOucProg::Run(), XrdCmsFinderTRG::RunAdmin(), XrdOucProg::RunDone(), XrdOfsTPCAuth::RunTTL(), XrdOssCache::Scan(), XrdFrmFileset::Screen(), XrdXrootdPrepare::Scrub(), XrdLinkXeq::Send(), XrdNetMsg::Send(), XrdCmsAdmin::Send(), XrdLink::Send(), XrdXrootdAioTask::SendError(), XrdXrootdCallBack::sendError(), XrdXrootdAioTask::SendFSError(), XrdLinkXeq::SendIOV(), XrdSsiTaskReal::SendRequest(), XrdXrootdCallBack::sendResp(), XrdXrootdCallBack::sendVesp(), XrdFrmFileset::setCpyTime(), XrdNetIF::SetIF(), XrdNetSocket::setOpts(), XrdBwmHandle::setPolicy(), TagPath::SetPrefix(), XrdLink::setRef(), XrdLinkXeq::setTLS(), XrdOucProg::Setup(), XrdLinkCtl::Setup(), XrdPoll::Setup(), XrdNetSocket::setWindow(), XrdLinkXeq::SFError(), XrdLinkXeq::Shutdown(), XrdNetSocket::SockData(), XrdNetSocket::socketPath(), XrdOssSys::Stage_RT(), XrdScheduler::Start(), XrdCmsBaseFS::Start(), XrdCmsClientMan::Start(), XrdCmsFinderTRG::Start(), XrdFrmXfrAgent::Start(), XrdFrmReqBoss::Start(), XrdNetPMarkFF::Start(), XrdCmsAdmin::Start(), XrdXrootdAdmin::Start(), XrdBwmLogger::Start(), XrdOfsEvs::Start(), XrdPollE::Start(), XrdPollPoll::Start(), XrdOfsHandle::StartXpr(), XrdOssArc::Stat(), XrdFrmXfrQueue::StopMon(), XrdOucUtils::subLogfn(), XrdOfsTPCJob::Sync(), XrdLinkXeq::TLS_Error(), XrdOssArc::Truncate(), XrdOssSpace::Unassign(), XrdOucUtils::Undercover(), XrdFrcUtils::Unique(), XrdOssArc::Unlink(), XrdOssAt::Unlink(), XrdOfs::Unpersist(), XrdNetRefresh::UnRegister(), XrdCmsState::Update(), XrdFrcUtils::updtCpy(), XrdOssSpace::Usage(), XrdFrcUtils::Utime(), XrdCmsManager::Verify(), XrdLink::Wait4Data(), XrdOssFile::Write(), XrdSsiFileSess::write(), XrdOssSys::xalloc(), XrdOssSys::xcachescan(), XrdOfsTPCProg::Xeq(), XrdSsiTaskReal::XeqEvent(), XrdOssSys::xfdlimit(), XrdOssSys::xmaxsz(), XrdOssSys::xmemf(), XrdOssSys::xnml(), xonmissing(), XrdOssSys::xpath(), XrdOssSys::xprerd(), XrdAccAuthorizeObjAdd(), XrdAccAuthorizeObject(), XrdgetProtocolPort(), XrdHttpGetExtHandler(), XrdOfsgetPrepare(), XrdOssAddStorageSystem2(), XrdOssAioWait(), XrdOucgetName2Name(), XrdSysThread_Xeq(), XrdXrootdloadFileSystem(), XrdXrootdloadRedirLib(), XrdOssSys::xspace(), XrdOssSys::xspaceBuild(), XrdOssSys::xstg(), XrdOssSys::xstl(), XrdOssSys::xtrace(), XrdOssSys::xusage(), and XrdOssSys::xxfr().

+ Here is the call graph for this function:

◆ getMsgMask()

int XrdSysError::getMsgMask ( )
inline

Definition at line 190 of file XrdSysError.hh.

190 {return msgMask;}

Referenced by XrdAccSciTokens::Access(), XrdOssStats::FileSystem::Config(), and XrdVomsMapfile::Configure().

+ Here is the caller graph for this function:

◆ Log()

void XrdSysError::Log ( int  mask,
const char *  esfx,
const char *  text1,
const char *  text2 = 0,
const char *  text3 = 0 
)
inline

Definition at line 167 of file XrdSysError.hh.

171  {if (mask & msgMask) Emsg(esfx, text1, text2, text3);}
int Emsg(const char *esfx, int ecode, const char *text1, const char *text2=0)
Definition: XrdSysError.cc:116

References Emsg().

Referenced by Macaroons::Authz::Access(), XrdAccSciTokens::Access(), XrdVomsMapfile::Apply(), XrdXrootdProtocol::Recycle(), XrdAccSciTokens::Validate(), and Macaroons::Authz::Validate().

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

◆ logger()

XrdSysLogger* XrdSysError::logger ( XrdSysLogger lp = 0)
inline

Definition at line 175 of file XrdSysError.hh.

176  {XrdSysLogger *oldp = Logger;
177  if (lp) Logger = lp;
178  return oldp;
179  }

Referenced by TPC::TPCHandler::TPCHandler(), XrdCmsFinderRMT::XrdCmsFinderRMT(), XrdCmsFinderTRG::XrdCmsFinderTRG(), XrdCmsRedirLocal::XrdCmsRedirLocal(), XrdFrcProxy::XrdFrcProxy(), XrdScheduler::XrdScheduler(), XrdXrootdTpcMon::XrdXrootdTpcMon(), XrdSecProtector::Config(), XrdOucLogging::configLog(), XrdOucPsx::ConfigSetup(), XrdOssSys::ConfigStage(), XrdOssSys::ConfigStatLib(), XrdHttpProtocol::Configure(), XrdXrootdProtocol::Configure(), XrdSecServer::Configure(), XrdCmsFinderRMT::Configure(), XrdCmsClientConfig::Configure(), XrdConfig::Configure(), XrdFrmConfig::Configure(), XrdCmsConfig::Configure0(), XrdSecProtocolgsi::EnableTracing(), XrdSecProtocolpwd::EnableTracing(), XrdOucStream::Exec(), XrdCmsBlackList::Init(), XrdOssSys::Init(), XrdPssSys::Init(), XrdHttpMon::Initialize(), XrdOfsConfigPI::Load(), LoadFS(), main(), XrdCmsMeter::Monitor(), XrdCmsPrepare::Reset(), XrdCryptosslFactory::SetTrace(), XrdNetRefresh::Start(), XrdCryptoSetTrace(), XrdOfsgetPrepare(), XrdOssGetSS(), XrdOssGetStorageSystem(), XrdOssStatInfoInit2(), XrdSecgsiGMAPInit(), XrdSfsGetDefaultFileSystem(), XrdSfsGetFileSystem(), XrdSfsGetFileSystem2(), XrdSutSetTrace(), XrdSysGetXAttrObject(), XrdVERSIONINFO(), XrdXrootdloadFileSystem(), and XrdXrootdloadRedirLib().

+ Here is the caller graph for this function:

◆ Say()

void XrdSysError::Say ( const char *  text1,
const char *  text2 = 0,
const char *  txt3 = 0,
const char *  text4 = 0,
const char *  text5 = 0,
const char *  txt6 = 0 
)

Definition at line 162 of file XrdSysError.cc.

164 {
165  struct iovec iov[9];
166  int iovpnt = 0;
167  if (txt1) Set_IOV_Buff(txt1) // 0
168  else Set_IOV_Item(0,0);
169  if (txt2 && txt2[0]) Set_IOV_Buff(txt2); // 1
170  if (txt3 && txt3[0]) Set_IOV_Buff(txt3); // 2
171  if (txt4 && txt4[0]) Set_IOV_Buff(txt4); // 3
172  if (txt5 && txt5[0]) Set_IOV_Buff(txt5); // 4
173  if (txt6 && txt6[0]) Set_IOV_Buff(txt6); // 5
174  Set_IOV_Item("\n", 1); // 6
175  Logger->Put(iovpnt, iov);
176 }

References XrdGlobal::Logger, XrdSysLogger::Put(), Set_IOV_Buff, and Set_IOV_Item.

Referenced by XrdOssStats::FileSystem::FileSystem(), XrdAccSciTokens::XrdAccSciTokens(), XrdCephOssReadVFile::XrdCephOssReadVFile(), XrdFrmXfrQueue::Add(), cfOut(), XrdFrmAdmin::Chksum(), XrdOucStream::Close(), Macaroons::Handler::Config(), XrdPfc::Cache::Config(), XrdNetPMarkCfg::Config(), XrdOfs::Config_Display(), XrdOssSys::Config_Display(), XrdAccConfig::ConfigDB(), XrdPssSys::ConfigMapID(), XrdOssSys::ConfigMio(), XrdOssSys::ConfigProc(), XrdOssSys::ConfigSpace(), XrdOssSys::ConfigSpath(), XrdOssSys::ConfigStage(), XrdXrootdProtocol::Configure(), XrdOssSys::Configure(), XrdSecServer::Configure(), XrdOssArcConfig::Configure(), XrdSsiSfsConfig::Configure(), XrdThrottle::Configuration::Configure(), XrdConfig::Configure(), XrdFrmConfig::Configure(), XrdBwm::Configure(), XrdOfs::Configure(), XrdAccConfig::Configure(), XrdCmsConfig::Configure1(), XrdCmsConfig::Configure2(), XrdOssSys::ConfigXeq(), XrdBwm::ConfigXeq(), XrdOfs::ConfigXeq(), XrdCmsConfig::ConfigXeq(), XrdConfig::ConfigXeq(), XrdCephXAttr::Del(), XrdFrmMigrate::Display(), XrdFrmPurge::Display(), XrdOfsConfigPI::Display(), XrdNetIF::Display(), XrdOssMio::Display(), XrdSecEntity::Display(), XrdCmsBlackList::DoIt(), XrdOucStream::Echo(), XrdOucGatherConf::EchoLine(), XrdPfc::Cache::ExecuteCommandUrl(), XrdCmsManager::Finished(), XrdCephXAttr::Get(), XrdNetIF::GetIF(), XrdOucArgs::getopt(), XrdOfsConfigCP::Init(), XrdOssArcFSMon::Init(), XrdOfsPoscq::Init(), XrdOssCsiConfig::Init(), XrdPssSys::Init(), XrdOssArc::InitArc(), XrdFrmPurgeDir::isEmpty(), XrdCephXAttr::List(), XrdOssCache::List(), XrdOssSys::List_Path(), XrdThrottleManager::LoadUserLimits(), logwrapper(), m_translateFileName(), main(), XrdSsiLogger::Msg(), XrdSsiLogger::Msgf(), XrdSsiLogger::Msgv(), XrdCephOssFile::Open(), XrdCephOssDir::Opendir(), XrdOfsEvs::Parse(), XrdNetPMarkCfg::Parse(), XrdOucPsx::ParseCLib(), XrdOucUtils::parseLib(), XrdCmsUtils::ParseMan(), XrdOucPsx::ParseSet(), XrdOucPsx::ParseTrace(), XrdCephOssFile::Read(), XrdCephOssFile::ReadV(), XrdMonitor::Register(), XrdCmsManager::Rerun(), XrdCms::MidNightTask::Ring(), XrdCephXAttr::Set(), XrdNetIF::SetIFNames(), XrdCmsManager::Start(), XrdFrmTransfer::Start(), XrdCephOss::Stat(), XrdCephOss::StatFS(), XrdCephOss::StatLS(), XrdCephOss::StatVS(), XrdCephOss::Truncate(), XrdCephOss::Unlink(), XrdOssSys::xcache(), XrdOfsTPCProg::Xeq(), XrdOssSys::xmemf(), XrdDigGetFS(), XrdgetProtocol(), XrdgetProtocolPort(), XrdOssAddStorageSystem2(), XrdOssGetStorageSystem(), XrdOssStatInfoInit(), XrdOssStatInfoParm(), XrdOucGetCache(), XrdSfsGetFileSystem(), XrdSysGetXAttrObject(), XrdOssSys::xspace(), XrdOssSys::xspaceBuild(), and XrdOssSys::xtrace().

+ Here is the call graph for this function:

◆ setMsgMask()

void XrdSysError::setMsgMask ( int  mask)
inline

Definition at line 188 of file XrdSysError.hh.

188 {msgMask = mask;}

Referenced by Macaroons::Handler::Config(), XrdOssStats::FileSystem::Config(), and XrdVomsMapfile::Configure().

+ Here is the caller graph for this function:

◆ SetPrefix()

const char* XrdSysError::SetPrefix ( const char *  prefix)
inline

Definition at line 194 of file XrdSysError.hh.

195  {const char *oldpfx = epfx;
196  epfx = prefix; epfxlen = strlen(epfx);
197  return oldpfx;
198  }

Referenced by XrdFrmConfig::XrdFrmConfig(), XrdSysError(), XrdCpConfig::Config(), XrdOssGetStorageSystem(), XrdSfsGetDefaultFileSystem(), XrdSfsGetFileSystem(), XrdSfsGetFileSystem2(), and XrdSysGetXAttrObject().

+ Here is the caller graph for this function:

◆ TBeg()

void XrdSysError::TBeg ( const char *  txt1 = 0,
const char *  txt2 = 0,
const char *  txt3 = 0 
)

Definition at line 182 of file XrdSysError.cc.

183 {
184  std::cerr <<Logger->traceBeg();
185  if (txt1) std::cerr <<txt1 <<' ';
186  if (txt2) std::cerr <<epfx <<txt2 <<": ";
187  if (txt3) std::cerr <<txt3;
188 }
char * traceBeg()

References XrdGlobal::Logger, and XrdSysLogger::traceBeg().

Referenced by XrdOucTrace::Beg().

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

◆ TEnd()

void XrdSysError::TEnd ( )

Definition at line 194 of file XrdSysError.cc.

194 {std::cerr <<std::endl; Logger->traceEnd();}

References XrdGlobal::Logger, and XrdSysLogger::traceEnd().

Referenced by XrdOucTrace::End().

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

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