ewmscp  ..
Classes | Enumerations | Functions
errMsg Namespace Reference

Classes

class  location
 class for defining the location of a error message in the source code. More...
 
class  message
 class for (error) messages. More...
 

Enumerations

enum  level {
  level::emerg = LOG_EMERG, level::alert = LOG_ALERT, level::crit = LOG_CRIT, level::err = LOG_ERR,
  level::warning = LOG_WARNING, level::notice = LOG_NOTICE, level::info = LOG_INFO, level::debug = LOG_DEBUG
}
 

Functions

template<typename T >
void conCatString (std::ostringstream &msg, const T &begin)
 
template<typename T , typename ... Args>
void conCatString (std::ostringstream &msg, const T &begin, const Args &... args)
 
template<typename ... Args>
void emit (level aLogLevel, const location &loc, const std::string &aObject, const std::string &aAction, const Args &... args)
 function to create and enqueue a message, this is the only way that messages should be created! More...
 

Enumeration Type Documentation

◆ level

enum errMsg::level
strong
Enumerator
emerg 
alert 
crit 
err 
warning 
notice 
info 
debug 

Definition at line 50 of file errMsgQueue.h.

50  {
51  emerg = LOG_EMERG,
52  alert = LOG_ALERT,
53  crit = LOG_CRIT,
54  err = LOG_ERR,
55  warning = LOG_WARNING,
56  notice = LOG_NOTICE,
57  info = LOG_INFO,
58  debug = LOG_DEBUG
59  };

Function Documentation

◆ conCatString() [1/2]

template<typename T >
void errMsg::conCatString ( std::ostringstream &  msg,
const T &  begin 
)

Definition at line 134 of file errMsgQueue.h.

134  {
135  msg << begin;
136  }

Referenced by conCatString(), and emit().

Here is the caller graph for this function:

◆ conCatString() [2/2]

template<typename T , typename ... Args>
void errMsg::conCatString ( std::ostringstream &  msg,
const T &  begin,
const Args &...  args 
)
inline

Definition at line 137 of file errMsgQueue.h.

139  {
140  msg << begin;
141  if (sizeof...(args)) {
142  conCatString(msg, args...);
143  }
144  }

References conCatString().

Here is the call graph for this function:

◆ emit()

template<typename ... Args>
void errMsg::emit ( level  aLogLevel,
const location loc,
const std::string &  aObject,
const std::string &  aAction,
const Args &...  args 
)
inline

function to create and enqueue a message, this is the only way that messages should be created!

Parameters
[in]aLogLevel[in] log level as in syslog
[in]loc[in] location of the call
[in]aObject[in] a string describing the object concerned
[in]aAction[in] a string describing the action on which the message appeared
[in]args[in] additional args that form the message text

Definition at line 148 of file errMsgQueue.h.

153  {
154  std::ostringstream msg;
155  conCatString(msg, args...);
156  message::generateMsg(aLogLevel, loc, aObject, aAction, msg.str());
157  }

References conCatString(), and errMsg::message::generateMsg().

Referenced by copyRequest::base::adviseDelay(), copyRequest::base::attrset(), followJsonRequestProvider::cleanupRenameEvents(), outputHandler::davix::writerDavix::closeAndRemoveBadCopy(), outputHandler::dcap::writerDcap::closeAndRemoveBadCopy(), outputHandler::libssh::writerLibssh::closeAndRemoveBadCopy(), outputHandler::posixFile::writerPosixFile::closeAndRemoveBadCopy(), outputHandler::daosFs::writerDaosFs::closeAndRemoveBadCopy(), outputHandler::dcap::dcap(), outputHandler::dcap::doAttributePreservations(), copyRequest::base::doThreadedCopy(), copyRequest::base::doUnthreadedCopy(), followRequestProvider::enqueueOrAppend(), outputHandler::davix::ensureParentDirs(), outputHandler::dcap::ensureParentDirs(), outputHandler::libssh::ensureParentDirs(), outputHandler::posixFile::ensureParentDirs(), outputHandler::daosFs::ensureParentDirs(), followInotifyWatchRequestProvider::followStream(), requestProvider::getDstPath(), posixFileCommon::getStat(), libsshCommon::getVfsStat(), posixFileCommon::getXattr(), gpfsIoCommon::handleParallelUsedBlocks(), copyRequest::base::init(), main(), libsshCommon::openSessions(), printResults(), copyRequest::base::printResults(), copyRequest::base::process(), copyRequest::base::processQueue(), moveRequestProvider::processSource(), policyRunRequestProvider::processSource(), cmdLineRequestProvider::processSource(), followKafkaRequestProvider::processSources(), produceMsg(), libsshCommon::reconnectSessions(), outputHandler::dcap::remove(), outputHandler::libssh::remove(), outputHandler::posixFile::remove(), outputHandler::daosFs::remove(), outputHandler::dcap::rename(), outputHandler::libssh::rename(), outputHandler::posixFile::rename(), outputHandler::daosFs::rename(), outputHandler::libssh::renameSimple(), stopRequest::RequestStop(), copyRequest::base::retry(), messageQueue::kafka::send(), timer::instanceUnscoped::stop(), queuesAndThreads::stopQueue(), inputHandler::daosFs::DaosFsDirectory::~DaosFsDirectory(), inputHandler::davix::DavixDirectory::~DavixDirectory(), inputHandler::dcap::dcapDirectory::~dcapDirectory(), inputHandler::posixFile::PosixDirectory::~PosixDirectory(), inputHandler::daosFs::readerDaosFs::~readerDaosFs(), inputHandler::davix::readerDavix::~readerDavix(), inputHandler::dcap::readerDcap::~readerDcap(), inputHandler::libssh::readerLibssh::~readerLibssh(), inputHandler::posixFile::readerPosixFile::~readerPosixFile(), inputHandler::libssh::SftpDirectory::~SftpDirectory(), outputHandler::daosFs::writerDaosFs::~writerDaosFs(), outputHandler::libssh::writerLibssh::~writerLibssh(), and outputHandler::posixFile::writerPosixFile::~writerPosixFile().

Here is the call graph for this function:
Here is the caller graph for this function:
errMsg::level::warning
@ warning
errMsg::level::emerg
@ emerg
errMsg::level::alert
@ alert
errMsg::level::crit
@ crit
errMsg::level::info
@ info
errMsg::level::debug
@ debug
errMsg::conCatString
void conCatString(std::ostringstream &msg, const T &begin, const Args &... args)
Definition: errMsgQueue.h:137
errMsg::level::err
@ err
errMsg::level::notice
@ notice