#include <MessageLogger.h>
Definition at line 48 of file MessageLogger.h.
MessageLogger::MessageLogger | ( | ParameterSet const & | iPS, |
ActivityRegistry & | iRegistry | ||
) |
Definition at line 108 of file MessageLogger.cc.
References anyDebugEnabled_, edm::MessageDrop::debugEnabled, debugEnabledModules_, SQLiteCheck_cfg::debugModules, alignCSCRings::e, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, everyDebugEnabled_, fjrSummaryRequested_, edm::ParameterSet::getUntrackedParameter(), instance, jobFailure(), messageServicePSetValidatationResults_, edm::MessageLoggerQ::MLqCFG(), edm::MessageLoggerQ::MLqJOB(), edm::MessageLoggerQ::MLqMOD(), postBeginJob(), postBeginLumi(), postBeginRun(), postEndJob(), postEndLumi(), postEndRun(), postEventProcessing(), postFile(), postModule(), postModuleBeginJob(), postModuleBeginLumi(), postModuleBeginRun(), postModuleConstruction(), postModuleEndJob(), postModuleEndLumi(), postModuleEndRun(), postPathBeginLumi(), postPathBeginRun(), postPathEndLumi(), postPathEndRun(), postProcessPath(), postSource(), postSourceConstruction(), preBeginLumi(), preBeginRun(), preEndLumi(), preEndRun(), preEventProcessing(), preFile(), preFileClose(), preModule(), preModuleBeginJob(), preModuleBeginLumi(), preModuleBeginRun(), preModuleConstruction(), preModuleEndJob(), preModuleEndLumi(), preModuleEndRun(), prePathBeginLumi(), prePathBeginRun(), prePathEndLumi(), prePathEndRun(), preProcessPath(), preSource(), preSourceConstruction(), AlCaHLTBitMon_QueryRunRegistry::string, MergeJob_cfg::suppressDebug, EcnaSystemPythonModuleInsert_1::suppressInfo, suppression_levels_, MergeJob_cfg::suppressWarning, edm::ActivityRegistry::watchJobFailure(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostBeginLumi(), edm::ActivityRegistry::watchPostBeginRun(), edm::ActivityRegistry::watchPostCloseFile(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEndLumi(), edm::ActivityRegistry::watchPostEndRun(), edm::ActivityRegistry::watchPostModule(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleBeginLumi(), edm::ActivityRegistry::watchPostModuleBeginRun(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostModuleEndJob(), edm::ActivityRegistry::watchPostModuleEndLumi(), edm::ActivityRegistry::watchPostModuleEndRun(), edm::ActivityRegistry::watchPostOpenFile(), edm::ActivityRegistry::watchPostPathBeginLumi(), edm::ActivityRegistry::watchPostPathBeginRun(), edm::ActivityRegistry::watchPostPathEndLumi(), edm::ActivityRegistry::watchPostPathEndRun(), edm::ActivityRegistry::watchPostProcessEvent(), edm::ActivityRegistry::watchPostProcessPath(), edm::ActivityRegistry::watchPostSource(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPostSourceLumi(), edm::ActivityRegistry::watchPostSourceRun(), edm::ActivityRegistry::watchPreBeginLumi(), edm::ActivityRegistry::watchPreBeginRun(), edm::ActivityRegistry::watchPreCloseFile(), edm::ActivityRegistry::watchPreEndLumi(), edm::ActivityRegistry::watchPreEndRun(), edm::ActivityRegistry::watchPreModule(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleBeginLumi(), edm::ActivityRegistry::watchPreModuleBeginRun(), edm::ActivityRegistry::watchPreModuleConstruction(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEndLumi(), edm::ActivityRegistry::watchPreModuleEndRun(), edm::ActivityRegistry::watchPreOpenFile(), edm::ActivityRegistry::watchPrePathBeginLumi(), edm::ActivityRegistry::watchPrePathBeginRun(), edm::ActivityRegistry::watchPrePathEndLumi(), edm::ActivityRegistry::watchPrePathEndRun(), edm::ActivityRegistry::watchPreProcessEvent(), edm::ActivityRegistry::watchPreProcessPath(), edm::ActivityRegistry::watchPreSource(), edm::ActivityRegistry::watchPreSourceConstruction(), edm::ActivityRegistry::watchPreSourceLumi(), and edm::ActivityRegistry::watchPreSourceRun().
: debugEnabled_(false) , messageServicePSetHasBeenValidated_(false) , messageServicePSetValidatationResults_() , nonModule_debugEnabled(false) , nonModule_infoEnabled(true) , nonModule_warningEnabled(true) , nonModule_errorEnabled(true) // change log 20 { // prepare cfg validation string for later use MessageServicePSetValidation validator; messageServicePSetValidatationResults_ = validator(iPS); // change log 12 typedef std::vector<std::string> vString; vString empty_vString; vString debugModules; vString suppressDebug; vString suppressInfo; vString suppressWarning; vString suppressError; // change log 20 try { // change log 13 // decide whether a summary should be placed in job report fjrSummaryRequested_ = iPS.getUntrackedParameter<bool>("messageSummaryToJobReport", false); // grab list of debug-enabled modules debugModules = iPS.getUntrackedParameter<vString>("debugModules", empty_vString); // grab lists of suppressLEVEL modules suppressDebug = iPS.getUntrackedParameter<vString>("suppressDebug", empty_vString); suppressInfo = iPS.getUntrackedParameter<vString>("suppressInfo", empty_vString); suppressWarning = iPS.getUntrackedParameter<vString>("suppressWarning", empty_vString); suppressError = // change log 20 iPS.getUntrackedParameter<vString>("suppressError", empty_vString); } catch (cms::Exception& e) { // change log 13 } // Use these lists to prepare a map to use in tracking suppression // Do suppressDebug first and suppressError last to get proper order for( vString::const_iterator it = suppressDebug.begin(); it != suppressDebug.end(); ++it ) { suppression_levels_[*it] = ELseverityLevel::ELsev_success; } for( vString::const_iterator it = suppressInfo.begin(); it != suppressInfo.end(); ++it ) { suppression_levels_[*it] = ELseverityLevel::ELsev_info; } for( vString::const_iterator it = suppressWarning.begin(); it != suppressWarning.end(); ++it ) { suppression_levels_[*it] = ELseverityLevel::ELsev_warning; } for( vString::const_iterator it = suppressError.begin(); // change log 20 it != suppressError.end(); ++it ) { suppression_levels_[*it] = ELseverityLevel::ELsev_error; } // set up for tracking whether current module is debug-enabled // (and info-enabled and warning-enabled) if ( debugModules.empty()) { anyDebugEnabled_ = false; // change log 11 MessageDrop::debugEnabled = false; // change log 1 } else { anyDebugEnabled_ = true; // change log 11 MessageDrop::debugEnabled = false; // this will be over-ridden when specific modules are entered } // if ( debugModules.empty()) anyDebugEnabled_ = true; // wrong; change log 11 for( vString::const_iterator it = debugModules.begin(); it != debugModules.end(); ++it ) { if (*it == "*") { everyDebugEnabled_ = true; } else { debugEnabledModules_.insert(*it); } } // change log 5 std::string jr_name = edm::MessageDrop::instance()->jobreport_name; if (!jr_name.empty()) { std::string * jr_name_p = new std::string(jr_name); MessageLoggerQ::MLqJOB( jr_name_p ); // change log 9 } // change log 7 std::string jm = edm::MessageDrop::instance()->jobMode; std::string * jm_p = new std::string(jm); MessageLoggerQ::MLqMOD( jm_p ); // change log 9 MessageLoggerQ::MLqCFG( new ParameterSet(iPS) ); // change log 9 iRegistry.watchPostBeginJob(this,&MessageLogger::postBeginJob); iRegistry.watchPostEndJob(this,&MessageLogger::postEndJob); iRegistry.watchJobFailure(this,&MessageLogger::jobFailure); // change log 14 iRegistry.watchPreModuleConstruction(this,&MessageLogger::preModuleConstruction); iRegistry.watchPostModuleConstruction(this,&MessageLogger::postModuleConstruction); // change log 3 iRegistry.watchPreSourceConstruction(this,&MessageLogger::preSourceConstruction); iRegistry.watchPostSourceConstruction(this,&MessageLogger::postSourceConstruction); // change log 3 iRegistry.watchPreModule(this,&MessageLogger::preModule); iRegistry.watchPostModule(this,&MessageLogger::postModule); iRegistry.watchPreSource(this,&MessageLogger::preSource); iRegistry.watchPostSource(this,&MessageLogger::postSource); // change log 14: iRegistry.watchPreSourceRun(this,&MessageLogger::preSource); iRegistry.watchPostSourceRun(this,&MessageLogger::postSource); iRegistry.watchPreSourceLumi(this,&MessageLogger::preSource); iRegistry.watchPostSourceLumi(this,&MessageLogger::postSource); iRegistry.watchPreOpenFile(this,&MessageLogger::preFile); iRegistry.watchPostOpenFile(this,&MessageLogger::postFile); iRegistry.watchPreCloseFile(this,&MessageLogger::preFileClose); iRegistry.watchPostCloseFile(this,&MessageLogger::postFile); // change log 13: // change log 15 iRegistry.watchPreModuleBeginJob(this,&MessageLogger::preModuleBeginJob); iRegistry.watchPostModuleBeginJob(this,&MessageLogger::postModuleBeginJob); iRegistry.watchPreModuleEndJob(this,&MessageLogger::preModuleEndJob); iRegistry.watchPostModuleEndJob(this,&MessageLogger::postModuleEndJob); iRegistry.watchPreModuleBeginRun(this,&MessageLogger::preModuleBeginRun); iRegistry.watchPostModuleBeginRun(this,&MessageLogger::postModuleBeginRun); iRegistry.watchPreModuleEndRun(this,&MessageLogger::preModuleEndRun); iRegistry.watchPostModuleEndRun(this,&MessageLogger::postModuleEndRun); iRegistry.watchPreModuleBeginLumi(this,&MessageLogger::preModuleBeginLumi); iRegistry.watchPostModuleBeginLumi(this,&MessageLogger::postModuleBeginLumi); iRegistry.watchPreModuleEndLumi(this,&MessageLogger::preModuleEndLumi); iRegistry.watchPostModuleEndLumi(this,&MessageLogger::postModuleEndLumi); iRegistry.watchPreProcessEvent(this,&MessageLogger::preEventProcessing); iRegistry.watchPostProcessEvent(this,&MessageLogger::postEventProcessing); // change log 14: iRegistry.watchPreBeginRun(this,&MessageLogger::preBeginRun); iRegistry.watchPostBeginRun(this,&MessageLogger::postBeginRun); iRegistry.watchPreEndRun(this,&MessageLogger::preEndRun); // change log 15 iRegistry.watchPostEndRun(this,&MessageLogger::postEndRun); iRegistry.watchPreBeginLumi(this,&MessageLogger::preBeginLumi); iRegistry.watchPostBeginLumi(this,&MessageLogger::postBeginLumi); iRegistry.watchPreEndLumi(this,&MessageLogger::preEndLumi); iRegistry.watchPostEndLumi(this,&MessageLogger::postEndLumi); iRegistry.watchPrePathBeginRun(this,&MessageLogger::prePathBeginRun); iRegistry.watchPostPathBeginRun(this,&MessageLogger::postPathBeginRun); iRegistry.watchPrePathEndRun(this,&MessageLogger::prePathEndRun); iRegistry.watchPostPathEndRun(this,&MessageLogger::postPathEndRun); iRegistry.watchPrePathBeginLumi(this,&MessageLogger::prePathBeginLumi); iRegistry.watchPostPathBeginLumi(this,&MessageLogger::postPathBeginLumi); iRegistry.watchPrePathEndLumi(this,&MessageLogger::prePathEndLumi); iRegistry.watchPostPathEndLumi(this,&MessageLogger::postPathEndLumi); iRegistry.watchPreProcessPath(this,&MessageLogger::preProcessPath); iRegistry.watchPostProcessPath(this,&MessageLogger::postProcessPath); } // ctor
static bool edm::service::MessageLogger::anyDebugEnabled | ( | ) | [inline, static] |
Definition at line 115 of file MessageLogger.h.
References anyDebugEnabled_.
{ return anyDebugEnabled_; }
bool edm::service::MessageLogger::debugEnabled | ( | ) | const [inline] |
void MessageLogger::establish | ( | const char * | whichPhase | ) | [private] |
Definition at line 383 of file MessageLogger.cc.
References anyDebugEnabled_, edm::MessageDrop::debugEnabled, debugEnabledModules_, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, edm::MessageDrop::errorEnabled, everyDebugEnabled_, edm::MessageDrop::infoEnabled, instance, edm::MessageDrop::setSinglet(), suppression_levels_, and edm::MessageDrop::warningEnabled.
Referenced by preFile(), preFileClose(), and preSource().
{ MessageDrop* messageDrop = MessageDrop::instance(); messageDrop->setSinglet( state ); // Change Log 17 if (!anyDebugEnabled_) { messageDrop->debugEnabled = false; } else if (everyDebugEnabled_) { messageDrop->debugEnabled = true; } else { messageDrop->debugEnabled = debugEnabledModules_.count(state); // change log 8 } std::map<const std::string,ELseverityLevel>::const_iterator it = suppression_levels_.find(state); // change log 8 if ( it != suppression_levels_.end() ) { messageDrop->debugEnabled = messageDrop->debugEnabled && (it->second < ELseverityLevel::ELsev_success ); messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info ); messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning ); messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error ); } else { messageDrop->infoEnabled = true; messageDrop->warningEnabled = true; messageDrop->errorEnabled = true; } }
void MessageLogger::establishModule | ( | const ModuleDescription & | desc, |
const char * | whichPhase | ||
) | [private] |
Definition at line 285 of file MessageLogger.cc.
References anyDebugEnabled_, edm::MessageDrop::debugEnabled, debugEnabledModules_, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, edm::MessageDrop::errorEnabled, everyDebugEnabled_, edm::MessageDrop::infoEnabled, instance, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, edm::MessageDrop::setModuleWithPhase(), suppression_levels_, and edm::MessageDrop::warningEnabled.
Referenced by postModule(), preModule(), preModuleBeginJob(), preModuleBeginLumi(), preModuleBeginRun(), preModuleEndJob(), preModuleEndLumi(), and preModuleEndRun().
{ MessageDrop* messageDrop = MessageDrop::instance(); nonModule_debugEnabled = messageDrop->debugEnabled; nonModule_infoEnabled = messageDrop->infoEnabled; nonModule_warningEnabled = messageDrop->warningEnabled; nonModule_errorEnabled = messageDrop->errorEnabled; // change log 20 // std::cerr << "establishModule( " << desc.moduleName() << ")\n"; // Change Log 17 messageDrop->setModuleWithPhase( desc.moduleName(), desc.moduleLabel(), &desc, whichPhase ); // Removed caching per change 17 - caching is now done in MessageDrop.cc // in theContext() method, and only happens if a message is actually issued. if (!anyDebugEnabled_) { messageDrop->debugEnabled = false; } else if (everyDebugEnabled_) { messageDrop->debugEnabled = true; } else { messageDrop->debugEnabled = debugEnabledModules_.count(desc.moduleLabel()); } std::map<const std::string,ELseverityLevel>::const_iterator it = suppression_levels_.find(desc.moduleLabel()); if ( it != suppression_levels_.end() ) { messageDrop->debugEnabled = messageDrop->debugEnabled && (it->second < ELseverityLevel::ELsev_success ); messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info ); messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning ); messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error ); } else { messageDrop->infoEnabled = true; messageDrop->warningEnabled = true; messageDrop->errorEnabled = true; } } // establishModule
void MessageLogger::establishModuleCtor | ( | const ModuleDescription & | desc, |
const char * | whichPhase | ||
) | [private] |
Definition at line 326 of file MessageLogger.cc.
References anyDebugEnabled_, edm::MessageDrop::debugEnabled, debugEnabledModules_, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, edm::MessageDrop::errorEnabled, everyDebugEnabled_, edm::MessageDrop::infoEnabled, instance, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, edm::MessageDrop::setModuleWithPhase(), edm::MessageDrop::snapshot(), suppression_levels_, and edm::MessageDrop::warningEnabled.
Referenced by preModuleConstruction(), and preSourceConstruction().
{ MessageDrop* messageDrop = MessageDrop::instance(); nonModule_debugEnabled = messageDrop->debugEnabled; nonModule_infoEnabled = messageDrop->infoEnabled; nonModule_warningEnabled = messageDrop->warningEnabled; nonModule_errorEnabled = messageDrop->errorEnabled; // change log 20 // std::cerr << "establishModuleCtor( " << desc.moduleName() << ")\n"; // Change Log 17 messageDrop->setModuleWithPhase( desc.moduleName(), desc.moduleLabel(), 0, whichPhase ); // Cannot cache the value to improve performance because addresses are // not yet permanent - see change log 16. So did not provide desc ptr. if (!anyDebugEnabled_) { messageDrop->debugEnabled = false; } else if (everyDebugEnabled_) { messageDrop->debugEnabled = true; } else { messageDrop->debugEnabled = debugEnabledModules_.count(desc.moduleLabel()); } std::map<const std::string,ELseverityLevel>::const_iterator it = suppression_levels_.find(desc.moduleLabel()); if ( it != suppression_levels_.end() ) { messageDrop->debugEnabled = messageDrop->debugEnabled && (it->second < ELseverityLevel::ELsev_success ); messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info ); messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning ); messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error ); } else { messageDrop->infoEnabled = true; messageDrop->warningEnabled = true; messageDrop->errorEnabled = true; } messageDrop->snapshot(); // Change Log 18 } // establishModuleCtor
void edm::service::MessageLogger::fillErrorObj | ( | edm::ErrorObj & | obj | ) | const |
void MessageLogger::jobFailure | ( | ) |
Definition at line 700 of file MessageLogger.cc.
References instance, edm::MessageLoggerQ::MLqSUM(), edm::MessageDrop::moduleName, and SummarizeInJobReport().
Referenced by MessageLogger().
{ MessageDrop* messageDrop = MessageDrop::instance(); messageDrop->moduleName = "jobFailure"; SummarizeInJobReport(); // Put summary info into Job Rep // change log 10 MessageLoggerQ::MLqSUM ( ); // trigger summary info. // change log 9 }
void MessageLogger::postBeginJob | ( | ) |
Definition at line 529 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ MessageDrop::instance()->runEvent = "BeforeEvents"; MessageDrop::instance()->setSinglet("AfterBeginJob"); // Change Log 17 }
void MessageLogger::postBeginLumi | ( | const edm::LuminosityBlock & | , |
EventSetup const & | |||
) |
Definition at line 671 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->runEvent = "PostBeginLumi"; edm::MessageDrop::instance()->setSinglet("PostBeginLumi"); // changelog 17 }
void MessageLogger::postBeginRun | ( | const edm::Run & | , |
EventSetup const & | |||
) |
Definition at line 580 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->runEvent = "PostBeginRun"; edm::MessageDrop::instance()->setSinglet("PostBeginRun"); // changelog 17 // Note - module name had not been set here }
void MessageLogger::postEndJob | ( | ) |
Definition at line 693 of file MessageLogger.cc.
References edm::MessageLoggerQ::MLqSUM(), and SummarizeInJobReport().
Referenced by MessageLogger().
{ SummarizeInJobReport(); // Put summary info into Job Rep // change log 10 MessageLoggerQ::MLqSUM ( ); // trigger summary info. // change log 9 }
void MessageLogger::postEndLumi | ( | const edm::LuminosityBlock & | , |
EventSetup const & | |||
) |
Definition at line 686 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->runEvent = "PostEndLumi"; edm::MessageDrop::instance()->setSinglet("PostEndLumi"); // changelog 17 }
void MessageLogger::postEndRun | ( | const edm::Run & | , |
EventSetup const & | |||
) |
Definition at line 655 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->runEvent = "PostEndRun"; edm::MessageDrop::instance()->setSinglet("PostEndRun"); // changelog 17 }
void MessageLogger::postEventProcessing | ( | Event const & | , |
EventSetup const & | |||
) |
Definition at line 566 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->runEvent = "PostProcessEvent"; }
void MessageLogger::postFile | ( | ) |
Definition at line 547 of file MessageLogger.cc.
References unEstablish().
Referenced by MessageLogger().
{ unEstablish("AfterFile"); }
void MessageLogger::postModule | ( | ModuleDescription const & | iDescription | ) |
Definition at line 485 of file MessageLogger.cc.
References establishModule(), moduleStack_, and unEstablishModule().
Referenced by MessageLogger().
{ // The moduleStack_ should never be empty, but lets check to be safe ... if(moduleStack_.empty()) { unEstablishModule (iDescription, "PostModule"); } else { moduleStack_.pop_back(); if(moduleStack_.empty()) { unEstablishModule (iDescription, "PostModule"); } else { establishModule(*moduleStack_.back(), ""); } } }
void MessageLogger::postModuleBeginJob | ( | ModuleDescription const & | iDescription | ) |
Definition at line 442 of file MessageLogger.cc.
References unEstablishModule().
Referenced by MessageLogger().
{ unEstablishModule (iDescription, "AfterModBeginJob"); }
void MessageLogger::postModuleBeginLumi | ( | ModuleDescription const & | iDescription | ) |
Definition at line 475 of file MessageLogger.cc.
References unEstablishModule().
Referenced by MessageLogger().
{ unEstablishModule (iDescription, "AfterModBeginLumi"); }
void MessageLogger::postModuleBeginRun | ( | ModuleDescription const & | iDescription | ) |
Definition at line 467 of file MessageLogger.cc.
References unEstablishModule().
Referenced by MessageLogger().
{ unEstablishModule (iDescription, "AfterModBeginRun"); }
void MessageLogger::postModuleConstruction | ( | ModuleDescription const & | iDescription | ) |
Definition at line 434 of file MessageLogger.cc.
References unEstablishModule().
Referenced by MessageLogger().
{ unEstablishModule (iDescription, "AfterModConstruction"); }
void MessageLogger::postModuleEndJob | ( | ModuleDescription const & | iDescription | ) |
Definition at line 521 of file MessageLogger.cc.
References unEstablishModule().
Referenced by MessageLogger().
{ unEstablishModule (iDescription, "AfterModEndJob"); }
void MessageLogger::postModuleEndLumi | ( | ModuleDescription const & | iDescription | ) |
Definition at line 505 of file MessageLogger.cc.
References unEstablishModule().
Referenced by MessageLogger().
{ unEstablishModule (iDescription, "AfterModEndLumi"); }
void MessageLogger::postModuleEndRun | ( | ModuleDescription const & | iDescription | ) |
Definition at line 513 of file MessageLogger.cc.
References unEstablishModule().
Referenced by MessageLogger().
{ unEstablishModule (iDescription, "AfterModEndRun"); }
void MessageLogger::postPathBeginLumi | ( | const std::string & | pathname, |
HLTPathStatus const & | |||
) |
Definition at line 616 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setSinglet("PostPathBeginLumi"); // changelog 17 }
void MessageLogger::postPathBeginRun | ( | const std::string & | pathname, |
HLTPathStatus const & | |||
) |
Definition at line 593 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setSinglet("PostPathBeginRun"); // changelog 17 }
void MessageLogger::postPathEndLumi | ( | const std::string & | pathname, |
HLTPathStatus const & | |||
) |
Definition at line 628 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setSinglet("PostPathEndLumi"); // changelog 17 }
void MessageLogger::postPathEndRun | ( | const std::string & | pathname, |
HLTPathStatus const & | |||
) |
Definition at line 605 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setSinglet("PostPathEndRun"); // changelog 17 }
void MessageLogger::postProcessPath | ( | const std::string & | pathname, |
HLTPathStatus const & | |||
) |
Definition at line 640 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setSinglet("PostProcessPath"); // changelog 17 }
void MessageLogger::postSource | ( | ) |
Definition at line 540 of file MessageLogger.cc.
References unEstablish().
Referenced by MessageLogger().
{ unEstablish("AfterSource"); }
void MessageLogger::postSourceConstruction | ( | ModuleDescription const & | iDescription | ) |
Definition at line 459 of file MessageLogger.cc.
References unEstablishModule().
Referenced by MessageLogger().
{ unEstablishModule (iDescription, "AfterSourceConstruction"); }
void MessageLogger::preBeginLumi | ( | const edm::LuminosityBlockID & | iID, |
const edm::Timestamp & | |||
) |
Definition at line 662 of file MessageLogger.cc.
References instance, edm::LuminosityBlockID::luminosityBlock(), and edm::LuminosityBlockID::run().
Referenced by MessageLogger().
{ std::ostringstream ost; ost << "Run: " << iID.run() << " Lumi: " << iID.luminosityBlock(); edm::MessageDrop::instance()->runEvent = ost.str(); edm::MessageDrop::instance()->setSinglet("PreBeginLumi"); // changelog 17 }
void MessageLogger::preBeginRun | ( | const edm::RunID & | iID, |
const edm::Timestamp & | |||
) |
Definition at line 572 of file MessageLogger.cc.
References instance, and edm::RunID::run().
Referenced by MessageLogger().
{ std::ostringstream ost; ost << "Run: " << iID.run(); edm::MessageDrop::instance()->runEvent = ost.str(); edm::MessageDrop::instance()->setSinglet("PreBeginRun"); // changelog 17 }
void MessageLogger::preEndLumi | ( | const edm::LuminosityBlockID & | iID, |
const edm::Timestamp & | |||
) |
Definition at line 678 of file MessageLogger.cc.
References instance, edm::LuminosityBlockID::luminosityBlock(), and edm::LuminosityBlockID::run().
Referenced by MessageLogger().
{ std::ostringstream ost; ost << "Run: " << iID.run() << " Lumi: " << iID.luminosityBlock(); edm::MessageDrop::instance()->runEvent = ost.str(); edm::MessageDrop::instance()->setSinglet("PreEndLumi"); // changelog 17 }
void MessageLogger::preEndRun | ( | const edm::RunID & | iID, |
const edm::Timestamp & | |||
) |
Definition at line 646 of file MessageLogger.cc.
References instance, and edm::RunID::run().
Referenced by MessageLogger().
{ std::ostringstream ost; ost << "End Run: " << iID.run(); edm::MessageDrop::instance()->runEvent = ost.str(); edm::MessageDrop::instance()->setSinglet("PreEndRun"); // changelog 17 }
void MessageLogger::preEventProcessing | ( | edm::EventID const & | iID, |
edm::Timestamp const & | |||
) |
Definition at line 552 of file MessageLogger.cc.
References curr_event_, edm::EventID::event(), instance, and edm::EventID::run().
Referenced by MessageLogger().
{ std::ostringstream ost; curr_event_ = iID; ost << "Run: " << curr_event_.run() << " Event: " << curr_event_.event(); // change log 2 edm::MessageDrop::instance()->runEvent = ost.str(); edm::MessageDrop::instance()->setSinglet("PreEventProcessing");// changelog 17 // Note - module name had not been set here Similarly in other places where // RunEvent carries the new information; we add setSinglet for module name. }
void MessageLogger::preFile | ( | ) |
Definition at line 543 of file MessageLogger.cc.
References establish().
Referenced by MessageLogger().
{ establish("file_open"); }
void MessageLogger::preFileClose | ( | std::string const & | , |
bool | |||
) |
Definition at line 545 of file MessageLogger.cc.
References establish().
Referenced by MessageLogger().
{ establish("file_close"); }
void MessageLogger::preModule | ( | ModuleDescription const & | desc | ) |
Definition at line 479 of file MessageLogger.cc.
References establishModule(), and moduleStack_.
Referenced by MessageLogger().
{ establishModule (desc,""); // ChangeLog 13 moduleStack_.emplace_back(&desc); }
void MessageLogger::preModuleBeginJob | ( | ModuleDescription const & | desc | ) |
Definition at line 438 of file MessageLogger.cc.
References establishModule().
Referenced by MessageLogger().
{ establishModule (desc,"@beginJob"); // ChangeLog 13 }
void MessageLogger::preModuleBeginLumi | ( | ModuleDescription const & | desc | ) |
Definition at line 471 of file MessageLogger.cc.
References establishModule().
Referenced by MessageLogger().
{ establishModule (desc,"@beginLumi"); // ChangeLog 13 }
void MessageLogger::preModuleBeginRun | ( | ModuleDescription const & | desc | ) |
Definition at line 463 of file MessageLogger.cc.
References establishModule().
Referenced by MessageLogger().
{ establishModule (desc,"@beginRun"); // ChangeLog 13 }
void MessageLogger::preModuleConstruction | ( | ModuleDescription const & | desc | ) |
Definition at line 421 of file MessageLogger.cc.
References edm::errors::Configuration, establishModuleCtor(), messageServicePSetHasBeenValidated_, and messageServicePSetValidatationResults_.
Referenced by MessageLogger().
{ if (!messageServicePSetHasBeenValidated_) { // change log 12 if (!messageServicePSetValidatationResults_.empty() ) { throw ( edm::Exception ( edm::errors::Configuration , messageServicePSetValidatationResults_ ) ); } messageServicePSetHasBeenValidated_ = true; } establishModuleCtor (desc,"@ctor"); // ChangeLog 16 }
void MessageLogger::preModuleEndJob | ( | ModuleDescription const & | desc | ) |
Definition at line 517 of file MessageLogger.cc.
References establishModule().
Referenced by MessageLogger().
{ establishModule (desc,"@endJob"); // ChangeLog 13 }
void MessageLogger::preModuleEndLumi | ( | ModuleDescription const & | desc | ) |
Definition at line 501 of file MessageLogger.cc.
References establishModule().
Referenced by MessageLogger().
{ establishModule (desc,"@endLumi"); // ChangeLog 13 }
void MessageLogger::preModuleEndRun | ( | ModuleDescription const & | desc | ) |
Definition at line 509 of file MessageLogger.cc.
References establishModule().
Referenced by MessageLogger().
{ establishModule (desc,"@endRun"); // ChangeLog 13 }
void MessageLogger::prePathBeginLumi | ( | const std::string & | pathname | ) |
Definition at line 611 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setPath( "LPath: ", pathname); // change log 17 }
void MessageLogger::prePathBeginRun | ( | const std::string & | pathname | ) |
Definition at line 588 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setPath( "RPath: ", pathname); // change log 17 }
void MessageLogger::prePathEndLumi | ( | const std::string & | pathname | ) |
Definition at line 622 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setPath( "LPathEnd: ", pathname); // change log 17 }
void MessageLogger::prePathEndRun | ( | const std::string & | pathname | ) |
Definition at line 599 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setPath( "RPathEnd: ", pathname); // change log 17 }
void MessageLogger::preProcessPath | ( | const std::string & | pathname | ) |
Definition at line 634 of file MessageLogger.cc.
References instance.
Referenced by MessageLogger().
{ edm::MessageDrop::instance()->setPath( "PreProcPath ", pathname); // change log 17 }
void MessageLogger::preSource | ( | ) |
Definition at line 536 of file MessageLogger.cc.
References establish().
Referenced by MessageLogger().
{ establish("source"); }
void MessageLogger::preSourceConstruction | ( | ModuleDescription const & | desc | ) |
Definition at line 446 of file MessageLogger.cc.
References edm::errors::Configuration, establishModuleCtor(), messageServicePSetHasBeenValidated_, and messageServicePSetValidatationResults_.
Referenced by MessageLogger().
{ if (!messageServicePSetHasBeenValidated_) { // change log 12 if (!messageServicePSetValidatationResults_.empty() ) { throw ( edm::Exception ( edm::errors::Configuration , messageServicePSetValidatationResults_ ) ); } messageServicePSetHasBeenValidated_ = true; } establishModuleCtor (desc,"@sourceConstruction"); // ChangeLog 16 }
void MessageLogger::SummarizeInJobReport | ( | ) | [static] |
Definition at line 714 of file MessageLogger.cc.
References fjrSummaryRequested_, and edm::MessageLoggerQ::MLqJRS().
Referenced by jobFailure(), and postEndJob().
{ if ( fjrSummaryRequested_ ) { std::map<std::string, double> * smp = new std::map<std::string, double> (); MessageLoggerQ::MLqJRS ( smp ); Service<JobReport> reportSvc; reportSvc->reportMessageInfo(*smp); delete smp; } }
void MessageLogger::unEstablish | ( | const char * | whichPhase | ) | [private] |
Definition at line 411 of file MessageLogger.cc.
References instance.
Referenced by postFile(), and postSource().
{ MessageDrop::instance()->setSinglet( state ); // Change Log 17 }
void MessageLogger::unEstablishModule | ( | const ModuleDescription & | desc, |
const char * | whichPhase | ||
) | [private] |
Definition at line 368 of file MessageLogger.cc.
References edm::MessageDrop::debugEnabled, edm::MessageDrop::errorEnabled, edm::MessageDrop::infoEnabled, instance, nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, edm::MessageDrop::setSinglet(), and edm::MessageDrop::warningEnabled.
Referenced by postModule(), postModuleBeginJob(), postModuleBeginLumi(), postModuleBeginRun(), postModuleConstruction(), postModuleEndJob(), postModuleEndLumi(), postModuleEndRun(), and postSourceConstruction().
{ // std::cerr << "unestablishModule( " << desc.moduleName() << ") " // << "state = " << *state << "\n"; MessageDrop* messageDrop = MessageDrop::instance(); messageDrop->setSinglet( state ); // Change Log 17 messageDrop->debugEnabled = nonModule_debugEnabled; messageDrop->infoEnabled = nonModule_infoEnabled; messageDrop->warningEnabled = nonModule_warningEnabled; messageDrop->errorEnabled = nonModule_errorEnabled; // change log 20 }
bool MessageLogger::anyDebugEnabled_ = false [static, private] |
Definition at line 139 of file MessageLogger.h.
Referenced by anyDebugEnabled(), establish(), establishModule(), establishModuleCtor(), and MessageLogger().
Definition at line 132 of file MessageLogger.h.
Referenced by preEventProcessing().
bool edm::service::MessageLogger::debugEnabled_ [private] |
Definition at line 136 of file MessageLogger.h.
Referenced by debugEnabled().
std::set<std::string> edm::service::MessageLogger::debugEnabledModules_ [private] |
Definition at line 134 of file MessageLogger.h.
Referenced by establish(), establishModule(), establishModuleCtor(), and MessageLogger().
std::map<const ModuleDescription*, std::string> edm::service::MessageLogger::descToCalcName_ [private] |
Definition at line 138 of file MessageLogger.h.
bool MessageLogger::everyDebugEnabled_ = false [static, private] |
Definition at line 140 of file MessageLogger.h.
Referenced by establish(), establishModule(), establishModuleCtor(), and MessageLogger().
bool MessageLogger::fjrSummaryRequested_ = false [static, private] |
Definition at line 142 of file MessageLogger.h.
Referenced by MessageLogger(), and SummarizeInJobReport().
Definition at line 143 of file MessageLogger.h.
Referenced by preModuleConstruction(), and preSourceConstruction().
std::string edm::service::MessageLogger::messageServicePSetValidatationResults_ [private] |
Definition at line 144 of file MessageLogger.h.
Referenced by MessageLogger(), preModuleConstruction(), and preSourceConstruction().
std::vector<ModuleDescription const*> edm::service::MessageLogger::moduleStack_ [private] |
Definition at line 151 of file MessageLogger.h.
Referenced by postModule(), and preModule().
bool edm::service::MessageLogger::nonModule_debugEnabled [private] |
Definition at line 146 of file MessageLogger.h.
Referenced by establishModule(), establishModuleCtor(), and unEstablishModule().
bool edm::service::MessageLogger::nonModule_errorEnabled [private] |
Definition at line 149 of file MessageLogger.h.
Referenced by establishModule(), establishModuleCtor(), and unEstablishModule().
bool edm::service::MessageLogger::nonModule_infoEnabled [private] |
Definition at line 147 of file MessageLogger.h.
Referenced by establishModule(), establishModuleCtor(), and unEstablishModule().
bool edm::service::MessageLogger::nonModule_warningEnabled [private] |
Definition at line 148 of file MessageLogger.h.
Referenced by establishModule(), establishModuleCtor(), and unEstablishModule().
std::map<std::string,ELseverityLevel> edm::service::MessageLogger::suppression_levels_ [private] |
Definition at line 135 of file MessageLogger.h.
Referenced by establish(), establishModule(), establishModuleCtor(), and MessageLogger().