#include <MessageDrop.h>
Public Member Functions | |
std::string | moduleContext () |
void | setModuleWithPhase (std::string const &name, std::string const &label, const void *moduleID, const char *phase) |
void | setPath (const char *type, std::string const &pathname) |
void | setSinglet (const char *sing) |
void | snapshot () |
~MessageDrop () | |
Static Public Member Functions | |
static MessageDrop * | instance () |
Public Attributes | |
std::string | jobMode |
std::string | jobreport_name |
std::string | moduleName |
std::string | runEvent |
Static Public Attributes | |
static bool | debugAlwaysSuppressed = false |
static bool | debugEnabled = true |
static bool | errorEnabled = true |
static edm::Exception * | ex_p = 0 |
static bool | infoAlwaysSuppressed = false |
static bool | infoEnabled = true |
static unsigned char | messageLoggerScribeIsRunning = 0 |
static bool | warningAlwaysSuppressed = false |
static bool | warningEnabled = true |
Private Member Functions | |
MessageDrop () | |
Private Attributes | |
messagedrop::StringProducer const * | moduleNameProducer |
messagedrop::StringProducerPath * | spPath |
messagedrop::StringProducerSinglet * | spSinglet |
messagedrop::StringProducerWithPhase * | spWithPhase |
Definition at line 81 of file MessageDrop.h.
MessageDrop::MessageDrop | ( | ) | [private] |
Definition at line 209 of file MessageDrop.cc.
: moduleName ("") , runEvent("pre-events") , jobreport_name() , jobMode("") , spWithPhase(new messagedrop::StringProducerWithPhase) , spPath (new messagedrop::StringProducerPath) , spSinglet (new messagedrop::StringProducerSinglet) , moduleNameProducer (spSinglet) { }
MessageDrop::~MessageDrop | ( | ) |
Definition at line 221 of file MessageDrop.cc.
References spPath, spSinglet, and spWithPhase.
{ delete spSinglet; delete spPath; delete spWithPhase; }
MessageDrop * MessageDrop::instance | ( | ) | [static] |
Definition at line 65 of file MessageDrop.cc.
References drop.
Referenced by RPCReadOutMapping::detUnitFrame(), edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::FlushMessageLog(), PixelDataFormatter::interpretRawData(), edm::isMessageProcessingSetUp(), edm::service::MessageLogger::jobFailure(), edm::service::MessageLogger::MessageLogger(), DBSpecToDetUnit::operator()(), edm::service::MessageLogger::postBeginJob(), edm::service::MessageLogger::postBeginLumi(), edm::service::MessageLogger::postBeginRun(), edm::service::MessageLogger::postEndLumi(), edm::service::MessageLogger::postEndRun(), edm::service::MessageLogger::postEventProcessing(), edm::service::MessageLogger::postPathBeginLumi(), edm::service::MessageLogger::postPathBeginRun(), edm::service::MessageLogger::postPathEndLumi(), edm::service::MessageLogger::postPathEndRun(), edm::service::MessageLogger::postProcessPath(), edm::service::MessageLogger::preBeginLumi(), edm::service::MessageLogger::preBeginRun(), edm::service::MessageLogger::preEndLumi(), edm::service::MessageLogger::preEndRun(), edm::service::MessageLogger::preEventProcessing(), edm::service::MessageLogger::prePathBeginLumi(), edm::service::MessageLogger::prePathBeginRun(), edm::service::MessageLogger::prePathEndLumi(), edm::service::MessageLogger::prePathEndRun(), edm::service::MessageLogger::preProcessPath(), RPCUnpackingModule::produce(), SiPixelDigiToRaw::produce(), SiPixelRawToDigi::produce(), RPCRecordFormatter::recordUnpack(), edm::service::MessageLoggerScribe::run(), run_app(), edm::service::MessageLoggerScribe::runCommand(), edm::service::SingleThreadMSPresence::SingleThreadMSPresence(), edm::snapshotMessageLog(), edm::service::MessageLogger::unEstablish(), edm::service::MessageLogger::unEstablishModule(), and edm::MessageSender::~MessageSender().
{ static boost::thread_specific_ptr<MessageDrop> drops; MessageDrop* drop = drops.get(); if(drop==0) { drops.reset(new MessageDrop); drop=drops.get(); } return drop; }
std::string MessageDrop::moduleContext | ( | ) |
Definition at line 246 of file MessageDrop.cc.
References moduleNameProducer, and edm::messagedrop::StringProducer::theContext().
Referenced by edm::MessageSender::~MessageSender().
{ return moduleNameProducer->theContext(); }
void MessageDrop::setModuleWithPhase | ( | std::string const & | name, |
std::string const & | label, | ||
const void * | moduleID, | ||
const char * | phase | ||
) |
Definition at line 228 of file MessageDrop.cc.
References moduleNameProducer, edm::messagedrop::StringProducerWithPhase::set(), and spWithPhase.
Referenced by edm::service::MessageLogger::establishModule(), and edm::service::MessageLogger::establishModuleCtor().
{ spWithPhase->set(name, label, moduleID, phase); moduleNameProducer = spWithPhase; }
void MessageDrop::setPath | ( | const char * | type, |
std::string const & | pathname | ||
) |
Definition at line 236 of file MessageDrop.cc.
References moduleNameProducer, edm::messagedrop::StringProducerPath::set(), and spPath.
Referenced by edm::service::MessageLogger::prePathBeginLumi(), edm::service::MessageLogger::prePathBeginRun(), edm::service::MessageLogger::prePathEndLumi(), edm::service::MessageLogger::prePathEndRun(), and edm::service::MessageLogger::preProcessPath().
{ spPath->set(type, pathname); moduleNameProducer = spPath; }
void MessageDrop::setSinglet | ( | const char * | sing | ) |
Definition at line 241 of file MessageDrop.cc.
References moduleNameProducer, edm::messagedrop::StringProducerSinglet::set(), and spSinglet.
Referenced by edm::service::MessageLogger::establish(), edm::service::MessageLogger::postBeginJob(), edm::service::MessageLogger::postBeginLumi(), edm::service::MessageLogger::postBeginRun(), edm::service::MessageLogger::postEndLumi(), edm::service::MessageLogger::postEndRun(), edm::service::MessageLogger::postPathBeginLumi(), edm::service::MessageLogger::postPathBeginRun(), edm::service::MessageLogger::postPathEndLumi(), edm::service::MessageLogger::postPathEndRun(), edm::service::MessageLogger::postProcessPath(), edm::service::MessageLogger::preBeginLumi(), edm::service::MessageLogger::preBeginRun(), edm::service::MessageLogger::preEndLumi(), edm::service::MessageLogger::preEndRun(), edm::service::MessageLogger::preEventProcessing(), edm::service::MessageLogger::unEstablish(), and edm::service::MessageLogger::unEstablishModule().
{ spSinglet->set(sing); moduleNameProducer = spSinglet; }
void MessageDrop::snapshot | ( | ) |
Definition at line 250 of file MessageDrop.cc.
References moduleNameProducer.
Referenced by edm::service::MessageLogger::establishModuleCtor(), and edm::snapshotMessageLog().
{ const_cast<messagedrop::StringProducer *>(moduleNameProducer)->snapshot(); }
bool MessageDrop::debugAlwaysSuppressed = false [static] |
Definition at line 106 of file MessageDrop.h.
Referenced by edm::service::MessageLoggerScribe::configure_dest(), edm::service::MessageLoggerScribe::configure_ordinary_destinations(), and edm::isDebugEnabled().
bool MessageDrop::debugEnabled = true [static] |
Definition at line 100 of file MessageDrop.h.
Referenced by RPCReadOutMapping::detUnitFrame(), edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), PixelDataFormatter::interpretRawData(), edm::isDebugEnabled(), edm::service::MessageLogger::MessageLogger(), DBSpecToDetUnit::operator()(), RPCUnpackingModule::produce(), RPCRecordFormatter::recordUnpack(), and edm::service::MessageLogger::unEstablishModule().
bool MessageDrop::errorEnabled = true [static] |
Definition at line 103 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::isErrorEnabled(), and edm::service::MessageLogger::unEstablishModule().
edm::Exception * MessageDrop::ex_p = 0 [static] |
Definition at line 105 of file MessageDrop.h.
bool MessageDrop::infoAlwaysSuppressed = false [static] |
Definition at line 107 of file MessageDrop.h.
Referenced by edm::service::MessageLoggerScribe::configure_dest(), edm::service::MessageLoggerScribe::configure_ordinary_destinations(), and edm::isInfoEnabled().
bool MessageDrop::infoEnabled = true [static] |
Definition at line 101 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::isInfoEnabled(), and edm::service::MessageLogger::unEstablishModule().
std::string edm::MessageDrop::jobMode |
Definition at line 99 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::MessageLogger().
std::string edm::MessageDrop::jobreport_name |
Definition at line 98 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::MessageLogger().
unsigned char MessageDrop::messageLoggerScribeIsRunning = 0 [static] |
Definition at line 104 of file MessageDrop.h.
Referenced by edm::service::MessageLoggerScribe::run(), edm::service::MessageLoggerScribe::runCommand(), and edm::service::SingleThreadMSPresence::SingleThreadMSPresence().
std::string edm::MessageDrop::moduleName |
Definition at line 88 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::jobFailure().
messagedrop::StringProducer const* edm::MessageDrop::moduleNameProducer [private] |
Definition at line 113 of file MessageDrop.h.
Referenced by moduleContext(), setModuleWithPhase(), setPath(), setSinglet(), and snapshot().
std::string edm::MessageDrop::runEvent |
Definition at line 97 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::postBeginJob(), edm::service::MessageLogger::postBeginLumi(), edm::service::MessageLogger::postBeginRun(), edm::service::MessageLogger::postEndLumi(), edm::service::MessageLogger::postEndRun(), edm::service::MessageLogger::postEventProcessing(), edm::service::MessageLogger::preBeginLumi(), edm::service::MessageLogger::preBeginRun(), edm::service::MessageLogger::preEndLumi(), edm::service::MessageLogger::preEndRun(), edm::service::MessageLogger::preEventProcessing(), and edm::MessageSender::~MessageSender().
Definition at line 111 of file MessageDrop.h.
Referenced by setPath(), and ~MessageDrop().
Definition at line 112 of file MessageDrop.h.
Referenced by setSinglet(), and ~MessageDrop().
Definition at line 110 of file MessageDrop.h.
Referenced by setModuleWithPhase(), and ~MessageDrop().
bool MessageDrop::warningAlwaysSuppressed = false [static] |
Definition at line 108 of file MessageDrop.h.
Referenced by edm::service::MessageLoggerScribe::configure_dest(), edm::service::MessageLoggerScribe::configure_ordinary_destinations(), and edm::isWarningEnabled().
bool MessageDrop::warningEnabled = true [static] |
Definition at line 102 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::isWarningEnabled(), and edm::service::MessageLogger::unEstablishModule().