CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
edm::service::MessageLogger Class Reference

#include <MessageLogger.h>

Public Member Functions

bool debugEnabled () const
 
void fillErrorObj (edm::ErrorObj &obj) const
 
 MessageLogger (ParameterSet const &, ActivityRegistry &)
 

Static Public Member Functions

static bool anyDebugEnabled ()
 
static void SummarizeInJobReport ()
 

Private Member Functions

void establish (const char *whichPhase)
 
void establishModule (const ModuleDescription &desc, const char *whichPhase)
 
void establishModule (unsigned int transitionIndex, const ModuleCallingContext &context, const char *whichPhase)
 
void jobFailure ()
 
void postBeginJob ()
 
void postEndJob ()
 
void postEvent (StreamContext const &)
 
void postFile (std::string const &, bool)
 
void postGlobalBeginLumi (GlobalContext const &)
 
void postGlobalBeginRun (GlobalContext const &)
 
void postGlobalEndLumi (GlobalContext const &)
 
void postGlobalEndRun (GlobalContext const &)
 
void postModuleBeginJob (ModuleDescription const &)
 
void postModuleBeginStream (StreamContext const &, ModuleCallingContext const &)
 
void postModuleConstruction (ModuleDescription const &)
 
void postModuleEndJob (ModuleDescription const &)
 
void postModuleEndStream (StreamContext const &, ModuleCallingContext const &)
 
void postModuleEvent (StreamContext const &, ModuleCallingContext const &)
 
void postModuleGlobalBeginLumi (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalBeginRun (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalEndLumi (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalEndRun (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleStreamBeginLumi (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamBeginRun (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamEndLumi (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamEndRun (StreamContext const &, ModuleCallingContext const &)
 
void postPathEvent (StreamContext const &, PathContext const &, HLTPathStatus const &)
 
void postSourceConstruction (ModuleDescription const &)
 
void postSourceEvent (StreamID)
 
void postSourceRunLumi ()
 
void postStreamBeginLumi (StreamContext const &)
 
void postStreamBeginRun (StreamContext const &)
 
void postStreamEndLumi (StreamContext const &)
 
void postStreamEndRun (StreamContext const &)
 
void preEvent (StreamContext const &)
 
void preFile (std::string const &, bool)
 
void preFileClose (std::string const &, bool)
 
void preGlobalBeginLumi (GlobalContext const &)
 
void preGlobalBeginRun (GlobalContext const &)
 
void preGlobalEndLumi (GlobalContext const &)
 
void preGlobalEndRun (GlobalContext const &)
 
void preModuleBeginJob (ModuleDescription const &)
 
void preModuleBeginStream (StreamContext const &, ModuleCallingContext const &)
 
void preModuleConstruction (ModuleDescription const &)
 
void preModuleEndJob (ModuleDescription const &)
 
void preModuleEndStream (StreamContext const &, ModuleCallingContext const &)
 
void preModuleEvent (StreamContext const &, ModuleCallingContext const &)
 
void preModuleGlobalBeginLumi (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalBeginRun (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalEndLumi (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalEndRun (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleStreamBeginLumi (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamBeginRun (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamEndLumi (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamEndRun (StreamContext const &, ModuleCallingContext const &)
 
void prePathEvent (StreamContext const &, PathContext const &)
 
void preSourceConstruction (ModuleDescription const &)
 
void preSourceEvent (StreamID)
 
void preSourceRunLumi ()
 
void preStreamBeginLumi (StreamContext const &)
 
void preStreamBeginRun (StreamContext const &)
 
void preStreamEndLumi (StreamContext const &)
 
void preStreamEndRun (StreamContext const &)
 
void unEstablish (const char *whichPhase)
 
void unEstablishModule (const ModuleDescription &desc, const char *whichPhase)
 
void unEstablishModule (const ModuleCallingContext &desc, const char *whichPhase)
 

Private Attributes

bool debugEnabled_
 
std::set< std::string > debugEnabledModules_
 
unsigned int lumiInfoBegin_ =0
 
bool messageServicePSetHasBeenValidated_
 
std::string messageServicePSetValidatationResults_
 
bool nonModule_debugEnabled
 
bool nonModule_errorEnabled
 
bool nonModule_infoEnabled
 
bool nonModule_warningEnabled
 
unsigned int runInfoBegin_ =0
 
std::map< std::string,
ELseverityLevel
suppression_levels_
 
std::vector< std::string > transitionInfoCache_
 

Static Private Attributes

static bool anyDebugEnabled_ = false
 
static bool everyDebugEnabled_ = false
 
static bool fjrSummaryRequested_ = false
 

Detailed Description

Definition at line 48 of file MessageLogger.h.

Constructor & Destructor Documentation

MessageLogger::MessageLogger ( ParameterSet const &  iPS,
ActivityRegistry iRegistry 
)

Definition at line 146 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, edm::MessageDrop::errorEnabled, everyDebugEnabled_, fjrSummaryRequested_, edm::ParameterSet::getUntrackedParameter(), edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), jobFailure(), edm::MessageDrop::jobMode, lumiInfoBegin_, edm::service::SystemBounds::maxNumberOfConcurrentLuminosityBlocks(), edm::service::SystemBounds::maxNumberOfConcurrentRuns(), edm::service::SystemBounds::maxNumberOfStreams(), messageServicePSetValidatationResults_, edm::MessageLoggerQ::MLqCFG(), edm::MessageLoggerQ::MLqMOD(), nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, postBeginJob(), postEndJob(), postEvent(), postFile(), postGlobalBeginLumi(), postGlobalBeginRun(), postGlobalEndLumi(), postGlobalEndRun(), postModuleBeginJob(), postModuleBeginStream(), postModuleConstruction(), postModuleEndJob(), postModuleEndStream(), postModuleEvent(), postModuleGlobalBeginLumi(), postModuleGlobalBeginRun(), postModuleGlobalEndLumi(), postModuleGlobalEndRun(), postModuleStreamBeginLumi(), postModuleStreamBeginRun(), postModuleStreamEndLumi(), postModuleStreamEndRun(), postPathEvent(), postSourceConstruction(), postSourceEvent(), postSourceRunLumi(), postStreamBeginLumi(), postStreamBeginRun(), postStreamEndLumi(), postStreamEndRun(), preEvent(), preFile(), preFileClose(), preGlobalBeginLumi(), preGlobalBeginRun(), preGlobalEndLumi(), preGlobalEndRun(), preModuleBeginJob(), preModuleBeginStream(), preModuleConstruction(), preModuleEndJob(), preModuleEndStream(), preModuleEvent(), preModuleGlobalBeginLumi(), preModuleGlobalBeginRun(), preModuleGlobalEndLumi(), preModuleGlobalEndRun(), preModuleStreamBeginLumi(), preModuleStreamBeginRun(), preModuleStreamEndLumi(), preModuleStreamEndRun(), prePathEvent(), preSourceConstruction(), preSourceEvent(), preSourceRunLumi(), preStreamBeginLumi(), preStreamBeginRun(), preStreamEndLumi(), preStreamEndRun(), runInfoBegin_, edm::setMaxLoggedErrorsSummaryIndicies(), AlCaHLTBitMon_QueryRunRegistry::string, MergeJob_cfg::suppressDebug, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::suppressInfo, suppression_levels_, MergeJob_cfg::suppressWarning, transitionInfoCache_, edm::MessageDrop::warningEnabled, edm::ActivityRegistry::watchJobFailure(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostCloseFile(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEvent(), edm::ActivityRegistry::watchPostGlobalBeginLumi(), edm::ActivityRegistry::watchPostGlobalBeginRun(), edm::ActivityRegistry::watchPostGlobalEndLumi(), edm::ActivityRegistry::watchPostGlobalEndRun(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleBeginStream(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostModuleEndJob(), edm::ActivityRegistry::watchPostModuleEndStream(), edm::ActivityRegistry::watchPostModuleEvent(), edm::ActivityRegistry::watchPostModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPostModuleGlobalBeginRun(), edm::ActivityRegistry::watchPostModuleGlobalEndLumi(), edm::ActivityRegistry::watchPostModuleGlobalEndRun(), edm::ActivityRegistry::watchPostModuleStreamBeginLumi(), edm::ActivityRegistry::watchPostModuleStreamBeginRun(), edm::ActivityRegistry::watchPostModuleStreamEndLumi(), edm::ActivityRegistry::watchPostModuleStreamEndRun(), edm::ActivityRegistry::watchPostOpenFile(), edm::ActivityRegistry::watchPostPathEvent(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPostSourceLumi(), edm::ActivityRegistry::watchPostSourceRun(), edm::ActivityRegistry::watchPostStreamBeginLumi(), edm::ActivityRegistry::watchPostStreamBeginRun(), edm::ActivityRegistry::watchPostStreamEndLumi(), edm::ActivityRegistry::watchPostStreamEndRun(), edm::ActivityRegistry::watchPreallocate(), edm::ActivityRegistry::watchPreCloseFile(), edm::ActivityRegistry::watchPreEvent(), edm::ActivityRegistry::watchPreGlobalBeginLumi(), edm::ActivityRegistry::watchPreGlobalBeginRun(), edm::ActivityRegistry::watchPreGlobalEndLumi(), edm::ActivityRegistry::watchPreGlobalEndRun(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleBeginStream(), edm::ActivityRegistry::watchPreModuleConstruction(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEndStream(), edm::ActivityRegistry::watchPreModuleEvent(), edm::ActivityRegistry::watchPreModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPreModuleGlobalBeginRun(), edm::ActivityRegistry::watchPreModuleGlobalEndLumi(), edm::ActivityRegistry::watchPreModuleGlobalEndRun(), edm::ActivityRegistry::watchPreModuleStreamBeginLumi(), edm::ActivityRegistry::watchPreModuleStreamBeginRun(), edm::ActivityRegistry::watchPreModuleStreamEndLumi(), edm::ActivityRegistry::watchPreModuleStreamEndRun(), edm::ActivityRegistry::watchPreOpenFile(), edm::ActivityRegistry::watchPrePathEvent(), edm::ActivityRegistry::watchPreSourceConstruction(), edm::ActivityRegistry::watchPreSourceEvent(), edm::ActivityRegistry::watchPreSourceLumi(), edm::ActivityRegistry::watchPreSourceRun(), edm::ActivityRegistry::watchPreStreamBeginLumi(), edm::ActivityRegistry::watchPreStreamBeginRun(), edm::ActivityRegistry::watchPreStreamEndLumi(), and edm::ActivityRegistry::watchPreStreamEndRun().

149  : debugEnabled_(false)
152  , nonModule_debugEnabled(false)
153  , nonModule_infoEnabled(true)
155  , nonModule_errorEnabled(true) // change log 20
156  {
157  // prepare cfg validation string for later use
159  messageServicePSetValidatationResults_ = validator(iPS); // change log 12
160 
161  typedef std::vector<std::string> vString;
162  vString empty_vString;
163  vString debugModules;
164  vString suppressDebug;
165  vString suppressInfo;
166  vString suppressWarning;
167  vString suppressError; // change log 20
168 
169  try { // change log 13
170  // decide whether a summary should be placed in job report
172  iPS.getUntrackedParameter<bool>("messageSummaryToJobReport", false);
173 
174  // grab list of debug-enabled modules
175  debugModules =
176  iPS.getUntrackedParameter<vString>("debugModules", empty_vString);
177 
178  // grab lists of suppressLEVEL modules
179  suppressDebug =
180  iPS.getUntrackedParameter<vString>("suppressDebug", empty_vString);
181 
182  suppressInfo =
183  iPS.getUntrackedParameter<vString>("suppressInfo", empty_vString);
184 
185  suppressWarning =
186  iPS.getUntrackedParameter<vString>("suppressWarning", empty_vString);
187 
188  suppressError = // change log 20
189  iPS.getUntrackedParameter<vString>("suppressError", empty_vString);
190  } catch (cms::Exception& e) { // change log 13
191  }
192 
193  // Use these lists to prepare a map to use in tracking suppression
194 
195  // Do suppressDebug first and suppressError last to get proper order
196  for( vString::const_iterator it = suppressDebug.begin();
197  it != suppressDebug.end(); ++it ) {
199  }
200 
201  for( vString::const_iterator it = suppressInfo.begin();
202  it != suppressInfo.end(); ++it ) {
204  }
205 
206  for( vString::const_iterator it = suppressWarning.begin();
207  it != suppressWarning.end(); ++it ) {
209  }
210 
211  for( vString::const_iterator it = suppressError.begin(); // change log 20
212  it != suppressError.end(); ++it ) {
214  }
215 
216  // set up for tracking whether current module is debug-enabled
217  // (and info-enabled and warning-enabled)
218  if ( debugModules.empty()) {
219  anyDebugEnabled_ = false; // change log 11
220  MessageDrop::instance()->debugEnabled = false; // change log 1
221  } else {
222  anyDebugEnabled_ = true; // change log 11
224  // this will be over-ridden when specific modules are entered
225  }
226 
227  // if ( debugModules.empty()) anyDebugEnabled_ = true; // wrong; change log 11
228  for( vString::const_iterator it = debugModules.begin();
229  it != debugModules.end(); ++it ) {
230  if (*it == "*") {
231  everyDebugEnabled_ = true;
232  } else {
233  debugEnabledModules_.insert(*it);
234  }
235  }
236 
237  // change log 7
239  std::string * jm_p = new std::string(jm);
240  MessageLoggerQ::MLqMOD( jm_p ); // change log 9
241 
242  MessageLoggerQ::MLqCFG( new ParameterSet(iPS) ); // change log 9
243 
244  iRegistry.watchPreallocate([this](edm::service::SystemBounds const& iBounds){
245  //reserve the proper amount of space to record the transition info
246  this->transitionInfoCache_.resize(iBounds.maxNumberOfStreams()
248  +iBounds.maxNumberOfConcurrentRuns());
251 
253  });
254 
257  iRegistry.watchJobFailure(this,&MessageLogger::jobFailure); // change log 14
258 
261  // change log 3
262 
265  // change log 3
266 
269 
272  // change log 14:
277  iRegistry.watchPreOpenFile(this,&MessageLogger::preFile);
281 
282  // change log 13:
283  // change log 15
288 
293 
302 
311 
312  iRegistry.watchPreEvent(this,&MessageLogger::preEvent);
313  iRegistry.watchPostEvent(this,&MessageLogger::postEvent);
314 
323 
332 
335 
336 
337  MessageDrop* messageDrop = MessageDrop::instance();
338  nonModule_debugEnabled = messageDrop->debugEnabled;
339  nonModule_infoEnabled = messageDrop->infoEnabled;
341  nonModule_errorEnabled = messageDrop->errorEnabled;
342  } // ctor
void preModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
void preModuleEvent(StreamContext const &, ModuleCallingContext const &)
void watchPostModuleGlobalEndLumi(PostModuleGlobalEndLumi::slot_type const &iSlot)
void watchPostModuleConstruction(PostModuleConstruction::slot_type const &iSlot)
void watchPreModuleGlobalBeginRun(PreModuleGlobalBeginRun::slot_type const &iSlot)
void postModuleEvent(StreamContext const &, ModuleCallingContext const &)
void preModuleEndJob(ModuleDescription const &)
void postGlobalEndRun(GlobalContext const &)
void watchPreEvent(PreEvent::slot_type const &iSlot)
void postStreamBeginLumi(StreamContext const &)
void preStreamEndLumi(StreamContext const &)
void preStreamBeginLumi(StreamContext const &)
void preModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
void watchPrePathEvent(PrePathEvent::slot_type const &iSlot)
void watchPreallocate(Preallocate::slot_type const &iSlot)
void postModuleConstruction(ModuleDescription const &)
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void postModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
void watchPostModuleEndStream(PostModuleEndStream::slot_type const &iSlot)
void watchPreModuleEvent(PreModuleEvent::slot_type const &iSlot)
tuple suppressDebug
Definition: MergeJob_cfg.py:30
void watchPreModuleConstruction(PreModuleConstruction::slot_type const &iSlot)
void postGlobalBeginLumi(GlobalContext const &)
void watchPreGlobalEndLumi(PreGlobalEndLumi::slot_type const &iSlot)
void preModuleBeginJob(ModuleDescription const &)
void postModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
void watchPostEvent(PostEvent::slot_type const &iSlot)
void postGlobalBeginRun(GlobalContext const &)
void watchPreStreamEndRun(PreStreamEndRun::slot_type const &iSlot)
void watchPreSourceConstruction(PreSourceConstruction::slot_type const &iSlot)
void watchPostSourceConstruction(PostSourceConstruction::slot_type const &iSlot)
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void watchPreGlobalBeginLumi(PreGlobalBeginLumi::slot_type const &iSlot)
void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const &iSlot)
void preGlobalEndLumi(GlobalContext const &)
void watchPostPathEvent(PostPathEvent::slot_type const &iSlot)
void watchPostModuleEvent(PostModuleEvent::slot_type const &iSlot)
void watchPostModuleGlobalBeginLumi(PostModuleGlobalBeginLumi::slot_type const &iSlot)
void watchPostModuleStreamEndLumi(PostModuleStreamEndLumi::slot_type const &iSlot)
static std::string jobMode
Definition: MessageDrop.h:109
void watchPostGlobalBeginLumi(PostGlobalBeginLumi::slot_type const &iSlot)
void watchPostModuleStreamBeginRun(PostModuleStreamBeginRun::slot_type const &iSlot)
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
void preSourceConstruction(ModuleDescription const &)
void setMaxLoggedErrorsSummaryIndicies(unsigned int iMax)
void watchPreModuleBeginStream(PreModuleBeginStream::slot_type const &iSlot)
void watchPreStreamEndLumi(PreStreamEndLumi::slot_type const &iSlot)
void preGlobalBeginLumi(GlobalContext const &)
void watchPreModuleGlobalEndRun(PreModuleGlobalEndRun::slot_type const &iSlot)
void postStreamEndRun(StreamContext const &)
void preModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
void preGlobalBeginRun(GlobalContext const &)
void postModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
void watchJobFailure(JobFailure::slot_type const &iSlot)
convenience function for attaching to signal
unsigned int maxNumberOfStreams() const
Definition: SystemBounds.h:43
void watchPreOpenFile(PreOpenFile::slot_type const &iSlot)
void preModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
void watchPostGlobalBeginRun(PostGlobalBeginRun::slot_type const &iSlot)
void postEvent(StreamContext const &)
void watchPostCloseFile(PostCloseFile::slot_type const &iSlot)
void watchPreGlobalEndRun(PreGlobalEndRun::slot_type const &iSlot)
void postModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
void watchPostSourceRun(PostSourceRun::slot_type const &iSlot)
void preFileClose(std::string const &, bool)
void watchPostStreamBeginLumi(PostStreamBeginLumi::slot_type const &iSlot)
static void MLqCFG(ParameterSet *p)
void watchPreSourceLumi(PreSourceLumi::slot_type const &iSlot)
void prePathEvent(StreamContext const &, PathContext const &)
void watchPreModuleEndJob(PreModuleEndJob::slot_type const &iSlot)
void preModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
void watchPostGlobalEndLumi(PostGlobalEndLumi::slot_type const &iSlot)
void postModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
void watchPreSourceRun(PreSourceRun::slot_type const &iSlot)
void preModuleConstruction(ModuleDescription const &)
void postStreamBeginRun(StreamContext const &)
void watchPreModuleBeginJob(PreModuleBeginJob::slot_type const &iSlot)
void watchPostStreamEndRun(PostStreamEndRun::slot_type const &iSlot)
void postModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
void watchPreModuleGlobalBeginLumi(PreModuleGlobalBeginLumi::slot_type const &iSlot)
void watchPostModuleStreamEndRun(PostModuleStreamEndRun::slot_type const &iSlot)
void watchPreGlobalBeginRun(PreGlobalBeginRun::slot_type const &iSlot)
void watchPreModuleStreamBeginLumi(PreModuleStreamBeginLumi::slot_type const &iSlot)
void postStreamEndLumi(StreamContext const &)
void postPathEvent(StreamContext const &, PathContext const &, HLTPathStatus const &)
void postModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
void watchPostModuleBeginStream(PostModuleBeginStream::slot_type const &iSlot)
std::vector< std::string > transitionInfoCache_
unsigned int maxNumberOfConcurrentLuminosityBlocks() const
Definition: SystemBounds.h:45
std::set< std::string > debugEnabledModules_
void watchPostSourceLumi(PostSourceLumi::slot_type const &iSlot)
void watchPreCloseFile(PreCloseFile::slot_type const &iSlot)
void watchPostModuleGlobalEndRun(PostModuleGlobalEndRun::slot_type const &iSlot)
void watchPostModuleStreamBeginLumi(PostModuleStreamBeginLumi::slot_type const &iSlot)
void postSourceConstruction(ModuleDescription const &)
void watchPreModuleStreamEndLumi(PreModuleStreamEndLumi::slot_type const &iSlot)
void watchPreModuleStreamBeginRun(PreModuleStreamBeginRun::slot_type const &iSlot)
static void MLqMOD(std::string *jm)
void watchPostGlobalEndRun(PostGlobalEndRun::slot_type const &iSlot)
void watchPreStreamBeginLumi(PreStreamBeginLumi::slot_type const &iSlot)
void watchPostOpenFile(PostOpenFile::slot_type const &iSlot)
void watchPreModuleEndStream(PreModuleEndStream::slot_type const &iSlot)
void postModuleEndJob(ModuleDescription const &)
void preStreamEndRun(StreamContext const &)
void watchPostStreamBeginRun(PostStreamBeginRun::slot_type const &iSlot)
void postModuleBeginJob(ModuleDescription const &)
void watchPreStreamBeginRun(PreStreamBeginRun::slot_type const &iSlot)
void preModuleEndStream(StreamContext const &, ModuleCallingContext const &)
void watchPreModuleStreamEndRun(PreModuleStreamEndRun::slot_type const &iSlot)
void watchPostModuleBeginJob(PostModuleBeginJob::slot_type const &iSlot)
void watchPostModuleGlobalBeginRun(PostModuleGlobalBeginRun::slot_type const &iSlot)
unsigned int maxNumberOfConcurrentRuns() const
Definition: SystemBounds.h:44
void preModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
void preFile(std::string const &, bool)
void postGlobalEndLumi(GlobalContext const &)
void postModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
void postModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
tuple suppressWarning
Definition: MergeJob_cfg.py:28
void preModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
void preGlobalEndRun(GlobalContext const &)
void preEvent(StreamContext const &)
std::string messageServicePSetValidatationResults_
void watchPostModuleEndJob(PostModuleEndJob::slot_type const &iSlot)
std::map< std::string, ELseverityLevel > suppression_levels_
void preModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
void preStreamBeginRun(StreamContext const &)
void postModuleEndStream(StreamContext const &, ModuleCallingContext const &)
void watchPreModuleGlobalEndLumi(PreModuleGlobalEndLumi::slot_type const &iSlot)
void preModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
void postFile(std::string const &, bool)

Member Function Documentation

static bool edm::service::MessageLogger::anyDebugEnabled ( )
inlinestatic

Definition at line 56 of file MessageLogger.h.

References anyDebugEnabled_.

56 { return anyDebugEnabled_; }
bool edm::service::MessageLogger::debugEnabled ( ) const
inline

Definition at line 53 of file MessageLogger.h.

References debugEnabled_.

void MessageLogger::establish ( const char *  whichPhase)
private

Definition at line 486 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, edm::MessageDrop::instance(), edm::MessageDrop::setSinglet(), suppression_levels_, and edm::MessageDrop::warningEnabled.

Referenced by preFile(), preFileClose(), preSourceEvent(), and preSourceRunLumi().

487  {
488  MessageDrop* messageDrop = MessageDrop::instance();
489  messageDrop->setSinglet( state ); // Change Log 17
490  if (!anyDebugEnabled_) {
491  messageDrop->debugEnabled = false;
492  } else if (everyDebugEnabled_) {
493  messageDrop->debugEnabled = true;
494  } else {
495  messageDrop->debugEnabled =
496  debugEnabledModules_.count(state); // change log 8
497  }
498  std::map<const std::string,ELseverityLevel>::const_iterator it =
499  suppression_levels_.find(state); // change log 8
500  if ( it != suppression_levels_.end() ) {
501  messageDrop->debugEnabled = messageDrop->debugEnabled
502  && (it->second < ELseverityLevel::ELsev_success );
503  messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info );
504  messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning );
505  messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error );
506  } else {
507  messageDrop->infoEnabled = true;
508  messageDrop->warningEnabled = true;
509  messageDrop->errorEnabled = true;
510  }
511  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::set< std::string > debugEnabledModules_
std::map< std::string, ELseverityLevel > suppression_levels_
void MessageLogger::establishModule ( const ModuleDescription desc,
const char *  whichPhase 
)
private

Definition at line 349 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::ModuleDescription::id(), edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), edm::MessageDrop::setModuleWithPhase(), suppression_levels_, and edm::MessageDrop::warningEnabled.

Referenced by preModuleBeginJob(), preModuleBeginStream(), preModuleConstruction(), preModuleEndJob(), preModuleEndStream(), preModuleEvent(), preModuleGlobalBeginLumi(), preModuleGlobalBeginRun(), preModuleGlobalEndLumi(), preModuleGlobalEndRun(), preModuleStreamBeginLumi(), preModuleStreamBeginRun(), preModuleStreamEndLumi(), preModuleStreamEndRun(), preSourceConstruction(), and unEstablishModule().

351  {
352  MessageDrop* messageDrop = MessageDrop::instance();
353 
354  // std::cerr << "establishModule( " << desc.moduleName() << ")\n";
355  // Change Log 17
356  messageDrop->setModuleWithPhase(desc.moduleName(), desc.moduleLabel(),
357  desc.id(), whichPhase );
358  // Removed caching per change 17 - caching is now done in MessageDrop.cc
359  // in theContext() method, and only happens if a message is actually issued.
360 
361  if (!anyDebugEnabled_) {
362  messageDrop->debugEnabled = false;
363  } else if (everyDebugEnabled_) {
364  messageDrop->debugEnabled = true;
365  } else {
366  messageDrop->debugEnabled =
367  debugEnabledModules_.count(desc.moduleLabel());
368  }
369 
370  auto it = suppression_levels_.find(desc.moduleLabel());
371  if ( it != suppression_levels_.end() ) {
372  messageDrop->debugEnabled = messageDrop->debugEnabled
373  && (it->second < ELseverityLevel::ELsev_success );
374  messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info );
375  messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning );
376  messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error );
377  } else {
378  messageDrop->infoEnabled = true;
379  messageDrop->warningEnabled = true;
380  messageDrop->errorEnabled = true;
381  }
382  } // establishModule
void setModuleWithPhase(std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
Definition: MessageDrop.cc:191
static MessageDrop * instance()
Definition: MessageDrop.cc:60
std::string const & moduleName() const
std::string const & moduleLabel() const
std::set< std::string > debugEnabledModules_
std::map< std::string, ELseverityLevel > suppression_levels_
unsigned int id() const
void MessageLogger::establishModule ( unsigned int  transitionIndex,
const ModuleCallingContext context,
const char *  whichPhase 
)
private

Definition at line 385 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, edm::MessageDrop::instance(), lumiInfoBegin_, bookConverter::max, edm::ModuleCallingContext::moduleDescription(), edm::MessageDrop::runEvent, edm::MessageDrop::setModuleWithPhase(), edm::MessageDrop::streamID, suppression_levels_, transitionInfoCache_, and edm::MessageDrop::warningEnabled.

388  {
389  MessageDrop* messageDrop = MessageDrop::instance();
390 
391  // std::cerr << "establishModule( " << desc.moduleName() << ")\n";
392  // Change Log 17
393  auto const desc = mod.moduleDescription();
394  messageDrop->runEvent = transitionInfoCache_[transitionIndex];
395  messageDrop->setModuleWithPhase(desc->moduleName(), desc->moduleLabel(),
396  desc->id(), whichPhase );
397  messageDrop->streamID = transitionIndex;
398  if(transitionIndex>= lumiInfoBegin_) {
400  }
401  // Removed caching per change 17 - caching is now done in MessageDrop.cc
402  // in theContext() method, and only happens if a message is actually issued.
403 
404  if (!anyDebugEnabled_) {
405  messageDrop->debugEnabled = false;
406  } else if (everyDebugEnabled_) {
407  messageDrop->debugEnabled = true;
408  } else {
409  messageDrop->debugEnabled =
410  debugEnabledModules_.count(desc->moduleLabel());
411  }
412 
413  auto it = suppression_levels_.find(desc->moduleLabel());
414  if ( it != suppression_levels_.end() ) {
415  messageDrop->debugEnabled = messageDrop->debugEnabled
416  && (it->second < ELseverityLevel::ELsev_success );
417  messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info );
418  messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning );
419  messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error );
420  } else {
421  messageDrop->infoEnabled = true;
422  messageDrop->warningEnabled = true;
423  messageDrop->errorEnabled = true;
424  }
425  } // establishModule
void setModuleWithPhase(std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
Definition: MessageDrop.cc:191
static MessageDrop * instance()
Definition: MessageDrop.cc:60
unsigned int streamID
Definition: MessageDrop.h:103
std::vector< std::string > transitionInfoCache_
std::set< std::string > debugEnabledModules_
std::string runEvent
Definition: MessageDrop.h:102
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
std::map< std::string, ELseverityLevel > suppression_levels_
void edm::service::MessageLogger::fillErrorObj ( edm::ErrorObj obj) const
void MessageLogger::jobFailure ( )
private

Definition at line 887 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageLoggerQ::MLqSUM(), edm::MessageDrop::setSinglet(), and SummarizeInJobReport().

Referenced by MessageLogger().

888  {
889  MessageDrop* messageDrop = MessageDrop::instance();
890  messageDrop->setSinglet("jobFailure");
891  SummarizeInJobReport(); // Put summary info into Job Rep // change log 10
892  MessageLoggerQ::MLqSUM ( ); // trigger summary info. // change log 9
893  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
static void SummarizeInJobReport()
static void MLqSUM()
void MessageLogger::postBeginJob ( )
private

Definition at line 689 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

690  {
691  MessageDrop::instance()->runEvent = "BeforeEvents";
692  MessageDrop::instance()->setSinglet("AfterBeginJob"); // Change Log 17
693  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postEndJob ( )
private

Definition at line 880 of file MessageLogger.cc.

References edm::MessageLoggerQ::MLqSUM(), and SummarizeInJobReport().

Referenced by MessageLogger().

881  {
882  SummarizeInJobReport(); // Put summary info into Job Rep // change log 10
883  MessageLoggerQ::MLqSUM ( ); // trigger summary info. // change log 9
884  }
static void SummarizeInJobReport()
static void MLqSUM()
void MessageLogger::postEvent ( StreamContext const &  iContext)
private

Definition at line 728 of file MessageLogger.cc.

References edm::clearLoggedErrorsSummary(), edm::MessageDrop::instance(), edm::MessageDrop::runEvent, edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by MessageLogger().

729  {
730  edm::MessageDrop::instance()->runEvent = "PostProcessEvent";
731  edm::clearLoggedErrorsSummary(iContext.streamID().value());
732  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void clearLoggedErrorsSummary(unsigned int iStreamID)
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postFile ( std::string const &  ,
bool   
)
private

Definition at line 708 of file MessageLogger.cc.

References unEstablish().

Referenced by MessageLogger().

709  { unEstablish("AfterFile"); }
void unEstablish(const char *whichPhase)
void MessageLogger::postGlobalBeginLumi ( GlobalContext const &  )
private

Definition at line 857 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

858  {
859  edm::MessageDrop::instance()->runEvent = "PostBeginLumi";
860  edm::MessageDrop::instance()->setSinglet("PostBeginLumi"); // changelog 17
861  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postGlobalBeginRun ( GlobalContext const &  )
private

Definition at line 809 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

810  {
811  edm::MessageDrop::instance()->runEvent = "PostBeginRun";
812  edm::MessageDrop::instance()->setSinglet("PostBeginRun"); // changelog 17
813  // Note - module name had not been set here
814  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postGlobalEndLumi ( GlobalContext const &  )
private

Definition at line 873 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

874  {
875  edm::MessageDrop::instance()->runEvent = "PostEndLumi";
876  edm::MessageDrop::instance()->setSinglet("PostEndLumi"); // changelog 17
877  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postGlobalEndRun ( GlobalContext const &  )
private

Definition at line 840 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

841  {
842  edm::MessageDrop::instance()->runEvent = "PostEndRun";
843  edm::MessageDrop::instance()->setSinglet("PostEndRun"); // changelog 17
844  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postModuleBeginJob ( ModuleDescription const &  iDescription)
private

Definition at line 546 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

547  { unEstablishModule (iDescription, "AfterModBeginJob"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleBeginStream ( StreamContext const &  stream,
ModuleCallingContext const &  mcc 
)
private

Definition at line 572 of file MessageLogger.cc.

References edm::ModuleCallingContext::moduleDescription(), and unEstablishModule().

Referenced by MessageLogger().

573  {
574  ModuleDescription const& desc = *mcc.moduleDescription();
575  unEstablishModule (desc, "AfterModBeginStream");
576  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleConstruction ( ModuleDescription const &  iDescription)
private

Definition at line 537 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

538  { //it is now guaranteed that this will be called even if the module throws
539  unEstablishModule (iDescription, "AfterModConstruction"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleEndJob ( ModuleDescription const &  iDescription)
private

Definition at line 681 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

682  { unEstablishModule (iDescription, "AfterModEndJob"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleEndStream ( StreamContext const &  ,
ModuleCallingContext const &  mcc 
)
private

Definition at line 670 of file MessageLogger.cc.

References edm::ModuleCallingContext::moduleDescription(), and unEstablishModule().

Referenced by MessageLogger().

671  {
672  ModuleDescription const& desc = *mcc.moduleDescription();
673  unEstablishModule (desc, "AfterModEndStream");
674  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleEvent ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 603 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

604  {
605  unEstablishModule(mod,"PostModuleEvent");
606  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::postModuleGlobalBeginLumi ( GlobalContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 642 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

643  { unEstablishModule (mod, "AfterModGlobalBeginLumi"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::postModuleGlobalBeginRun ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 633 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

634  { unEstablishModule (mod, "AfterModGlobalBeginRun"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::postModuleGlobalEndLumi ( GlobalContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 651 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

652  { unEstablishModule (mod, "AfterModGlobalEndLumi"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::postModuleGlobalEndRun ( GlobalContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 660 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

661  { unEstablishModule (mod, "AfterModGlobalEndRun"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::postModuleStreamBeginLumi ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 593 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

594  { unEstablishModule (mod, "AfterModStreamBeginLumi"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::postModuleStreamBeginRun ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 584 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

585  { unEstablishModule (mod, "AfterModStreamBeginRun"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::postModuleStreamEndLumi ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 614 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

615  { unEstablishModule (mod, "AfterModStreamEndLumi"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::postModuleStreamEndRun ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 623 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

624  { unEstablishModule (mod, "AfterModStreamEndRun"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::postPathEvent ( StreamContext const &  ,
PathContext const &  ,
HLTPathStatus const &   
)
private

Definition at line 825 of file MessageLogger.cc.

References edm::MessageDrop::instance(), and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

826  {
827  edm::MessageDrop::instance()->setSinglet("PostProcessPath"); // changelog 17
828  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
void MessageLogger::postSourceConstruction ( ModuleDescription const &  iDescription)
private

Definition at line 563 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

564  { unEstablishModule (iDescription, "AfterSourceConstruction"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postSourceEvent ( StreamID  )
private

Definition at line 697 of file MessageLogger.cc.

References unEstablish().

Referenced by MessageLogger().

698  { unEstablish("AfterSource"); }
void unEstablish(const char *whichPhase)
void MessageLogger::postSourceRunLumi ( )
private

Definition at line 701 of file MessageLogger.cc.

References unEstablish().

Referenced by MessageLogger().

702  { unEstablish("AfterSource"); }
void unEstablish(const char *whichPhase)
void MessageLogger::postStreamBeginLumi ( StreamContext const &  )
private

Definition at line 777 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

778  {
779  edm::MessageDrop::instance()->runEvent = "PostBeginLumi";
780  edm::MessageDrop::instance()->setSinglet("PostBeginLumi"); // changelog 17
781  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postStreamBeginRun ( StreamContext const &  )
private

Definition at line 743 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

744  {
745  edm::MessageDrop::instance()->runEvent = "PostBeginRun";
746  edm::MessageDrop::instance()->setSinglet("PostBeginRun"); // changelog 17
747  // Note - module name had not been set here
748  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postStreamEndLumi ( StreamContext const &  )
private

Definition at line 793 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

794  {
795  edm::MessageDrop::instance()->runEvent = "PostEndLumi";
796  edm::MessageDrop::instance()->setSinglet("PostEndLumi"); // changelog 17
797  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postStreamEndRun ( StreamContext const &  )
private

Definition at line 760 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

761  {
762  edm::MessageDrop::instance()->runEvent = "PostEndRun";
763  edm::MessageDrop::instance()->setSinglet("PostEndRun"); // changelog 17
764  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preEvent ( StreamContext const &  iContext)
private

Definition at line 713 of file MessageLogger.cc.

References assert(), edm::StreamContext::eventID(), edm::MessageDrop::instance(), edm::EventID::run(), edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, and edm::StreamID::value().

Referenced by MessageLogger().

714  {
715  std::ostringstream ost;
716  auto const& id = iContext.eventID();
717  ost << "Run: " << id.run()
718  << " Event: " << id.event(); // change log 2
719  assert(iContext.streamID().value()<transitionInfoCache_.size());
720  transitionInfoCache_[iContext.streamID().value()]=ost.str();
721  edm::MessageDrop::instance()->runEvent = ost.str();
722  edm::MessageDrop::instance()->setSinglet("PreEventProcessing");// changelog 17
723  // Note - module name had not been set here Similarly in other places where
724  // RunEvent carries the new information; we add setSinglet for module name.
725  }
assert(m_qm.get())
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::vector< std::string > transitionInfoCache_
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preFile ( std::string const &  ,
bool   
)
private

Definition at line 704 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

705  { establish("file_open"); }
void establish(const char *whichPhase)
void MessageLogger::preFileClose ( std::string const &  ,
bool   
)
private

Definition at line 706 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

707  { establish("file_close"); }
void establish(const char *whichPhase)
void MessageLogger::preGlobalBeginLumi ( GlobalContext const &  iContext)
private

Definition at line 847 of file MessageLogger.cc.

References edm::MessageDrop::instance(), lumiInfoBegin_, edm::GlobalContext::luminosityBlockID(), edm::GlobalContext::luminosityBlockIndex(), edm::LuminosityBlockID::run(), edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), and transitionInfoCache_.

Referenced by MessageLogger().

848  {
849  std::ostringstream ost;
850  auto const& id = iContext.luminosityBlockID();
851  ost << "Run: " << id.run() << " Lumi: " << id.luminosityBlock();
852  transitionInfoCache_[lumiInfoBegin_+iContext.luminosityBlockIndex()]=ost.str();
853  edm::MessageDrop::instance()->runEvent = ost.str();
854  edm::MessageDrop::instance()->setSinglet("PreBeginLumi"); // changelog 17
855  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::vector< std::string > transitionInfoCache_
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preGlobalBeginRun ( GlobalContext const &  iContext)
private

Definition at line 801 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::GlobalContext::luminosityBlockID(), edm::LuminosityBlockID::run(), edm::MessageDrop::runEvent, edm::GlobalContext::runIndex(), runInfoBegin_, edm::MessageDrop::setSinglet(), and transitionInfoCache_.

Referenced by MessageLogger().

802  {
803  std::ostringstream ost;
804  ost << "Run: " << iContext.luminosityBlockID().run();
805  transitionInfoCache_[runInfoBegin_+iContext.runIndex()]=ost.str();
806  edm::MessageDrop::instance()->runEvent = ost.str();
807  edm::MessageDrop::instance()->setSinglet("PreBeginRun"); // changelog 17
808  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::vector< std::string > transitionInfoCache_
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preGlobalEndLumi ( GlobalContext const &  iContext)
private

Definition at line 864 of file MessageLogger.cc.

References edm::MessageDrop::instance(), lumiInfoBegin_, edm::GlobalContext::luminosityBlockID(), edm::GlobalContext::luminosityBlockIndex(), edm::LuminosityBlockID::run(), edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), and transitionInfoCache_.

Referenced by MessageLogger().

865  {
866  std::ostringstream ost;
867  auto const& id = iContext.luminosityBlockID();
868  ost << "Run: " << id.run() << " Lumi: " << id.luminosityBlock();
869  transitionInfoCache_[lumiInfoBegin_+iContext.luminosityBlockIndex()]=ost.str();
870  edm::MessageDrop::instance()->runEvent = ost.str();
871  edm::MessageDrop::instance()->setSinglet("PreEndLumi"); // changelog 17
872  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::vector< std::string > transitionInfoCache_
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preGlobalEndRun ( GlobalContext const &  iContext)
private

Definition at line 831 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::GlobalContext::luminosityBlockID(), edm::LuminosityBlockID::run(), edm::MessageDrop::runEvent, edm::GlobalContext::runIndex(), runInfoBegin_, edm::MessageDrop::setSinglet(), and transitionInfoCache_.

Referenced by MessageLogger().

832  {
833  std::ostringstream ost;
834  ost << "End Run: " << iContext.luminosityBlockID().run();
835  transitionInfoCache_[runInfoBegin_+iContext.runIndex()]=ost.str();
836  edm::MessageDrop::instance()->runEvent = ost.str();
837  edm::MessageDrop::instance()->setSinglet("PreEndRun"); // changelog 17
838  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::vector< std::string > transitionInfoCache_
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preModuleBeginJob ( ModuleDescription const &  desc)
private

Definition at line 542 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

543  {
544  establishModule (desc,"@beginJob"); // ChangeLog 13
545  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preModuleBeginStream ( StreamContext const &  stream,
ModuleCallingContext const &  mcc 
)
private

Definition at line 567 of file MessageLogger.cc.

References establishModule(), and edm::ModuleCallingContext::moduleDescription().

Referenced by MessageLogger().

568  {
569  ModuleDescription const& desc = *mcc.moduleDescription();
570  establishModule (desc,"@beginStream"); // ChangeLog 13
571  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preModuleConstruction ( ModuleDescription const &  desc)
private

Definition at line 524 of file MessageLogger.cc.

References edm::errors::Configuration, establishModule(), messageServicePSetHasBeenValidated_, and messageServicePSetValidatationResults_.

Referenced by MessageLogger().

525  {
526  if (!messageServicePSetHasBeenValidated_) { // change log 12
528  throw ( edm::Exception
531  ) );
532  }
534  }
535  establishModule (desc,"@ctor"); // ChangeLog 16
536  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
std::string messageServicePSetValidatationResults_
void MessageLogger::preModuleEndJob ( ModuleDescription const &  desc)
private

Definition at line 677 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

678  {
679  establishModule (desc,"@endJob"); // ChangeLog 13
680  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preModuleEndStream ( StreamContext const &  ,
ModuleCallingContext const &  mcc 
)
private

Definition at line 664 of file MessageLogger.cc.

References establishModule(), and edm::ModuleCallingContext::moduleDescription().

Referenced by MessageLogger().

665  {
666  ModuleDescription const& desc = *mcc.moduleDescription();
667  establishModule (desc,"@endStream"); // ChangeLog 13
668  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preModuleEvent ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 597 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kEvent, mod(), edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by MessageLogger().

598  {
599  establishModule (stream.streamID().value(),mod,
600  s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kEvent)]);
601  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::preModuleGlobalBeginLumi ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 637 of file MessageLogger.cc.

References establishModule(), edm::GlobalContext::kBeginLuminosityBlock, lumiInfoBegin_, edm::GlobalContext::luminosityBlockIndex(), mod(), and edm::LuminosityBlockIndex::value().

Referenced by MessageLogger().

638  {
639  establishModule (lumiInfoBegin_+ context.luminosityBlockIndex().value(),mod,
640  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kBeginLuminosityBlock)]);
641  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::preModuleGlobalBeginRun ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 628 of file MessageLogger.cc.

References establishModule(), edm::GlobalContext::kBeginRun, mod(), edm::GlobalContext::runIndex(), runInfoBegin_, and edm::RunIndex::value().

Referenced by MessageLogger().

629  {
630  establishModule (runInfoBegin_+ context.runIndex().value(),mod,
631  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kBeginRun)]);
632  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::preModuleGlobalEndLumi ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 646 of file MessageLogger.cc.

References establishModule(), edm::GlobalContext::kEndLuminosityBlock, lumiInfoBegin_, edm::GlobalContext::luminosityBlockIndex(), mod(), and edm::LuminosityBlockIndex::value().

Referenced by MessageLogger().

647  {
648  establishModule (lumiInfoBegin_+ context.luminosityBlockIndex().value(),mod,
649  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kEndLuminosityBlock)]);
650  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::preModuleGlobalEndRun ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 655 of file MessageLogger.cc.

References establishModule(), edm::GlobalContext::kEndRun, mod(), edm::GlobalContext::runIndex(), runInfoBegin_, and edm::RunIndex::value().

Referenced by MessageLogger().

656  {
657  establishModule (runInfoBegin_+ context.runIndex().value(), mod,
658  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kEndRun)]); // ChangeLog 13
659  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::preModuleStreamBeginLumi ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 588 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kBeginLuminosityBlock, mod(), edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by MessageLogger().

589  {
590  establishModule (stream.streamID().value(),mod,
591  s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kBeginLuminosityBlock)]);
592  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::preModuleStreamBeginRun ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 579 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kBeginRun, mod(), edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by MessageLogger().

580  {
581  establishModule (stream.streamID().value(),mod,
582  s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kBeginRun)]);
583  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::preModuleStreamEndLumi ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 609 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kEndLuminosityBlock, mod(), edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by MessageLogger().

610  {
611  establishModule (stream.streamID().value(),mod,
612  s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kEndLuminosityBlock)]);
613  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::preModuleStreamEndRun ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 618 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kEndRun, mod(), edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by MessageLogger().

619  {
620  establishModule (stream.streamID().value(),mod,
621  s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kEndRun)]); // ChangeLog 13
622  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void MessageLogger::prePathEvent ( StreamContext const &  stream,
PathContext const &  iPath 
)
private

Definition at line 817 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::PathContext::pathName(), edm::StreamContext::streamID(), transitionInfoCache_, and edm::StreamID::value().

Referenced by MessageLogger().

818  {
819  auto messageDrop = edm::MessageDrop::instance();
820  messageDrop->runEvent = transitionInfoCache_[stream.streamID().value()];
821  messageDrop->setPath( "PreProcPath ", iPath.pathName());
822  // change log 17
823  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
std::vector< std::string > transitionInfoCache_
void MessageLogger::preSourceConstruction ( ModuleDescription const &  desc)
private

Definition at line 550 of file MessageLogger.cc.

References edm::errors::Configuration, establishModule(), messageServicePSetHasBeenValidated_, and messageServicePSetValidatationResults_.

Referenced by MessageLogger().

551  {
552  if (!messageServicePSetHasBeenValidated_) { // change log 12
554  throw ( edm::Exception
557  ) );
558  }
560  }
561  establishModule(desc,"@sourceConstruction"); // ChangeLog 16
562  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
std::string messageServicePSetValidatationResults_
void MessageLogger::preSourceEvent ( StreamID  )
private

Definition at line 695 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

696  { establish("source"); }
void establish(const char *whichPhase)
void MessageLogger::preSourceRunLumi ( )
private

Definition at line 699 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

700  { establish("source"); }
void establish(const char *whichPhase)
void MessageLogger::preStreamBeginLumi ( StreamContext const &  iContext)
private

Definition at line 767 of file MessageLogger.cc.

References edm::StreamContext::eventID(), edm::MessageDrop::instance(), edm::EventID::run(), edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, and edm::StreamID::value().

Referenced by MessageLogger().

768  {
769  std::ostringstream ost;
770  auto const& id = iContext.eventID();
771  ost << "Run: " << id.run() << " Lumi: " << id.luminosityBlock();
772  transitionInfoCache_[iContext.streamID().value()]=ost.str();
773  edm::MessageDrop::instance()->runEvent = ost.str();
774  edm::MessageDrop::instance()->setSinglet("PreBeginLumi"); // changelog 17
775  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::vector< std::string > transitionInfoCache_
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preStreamBeginRun ( StreamContext const &  iContext)
private

Definition at line 735 of file MessageLogger.cc.

References edm::StreamContext::eventID(), edm::MessageDrop::instance(), edm::EventID::run(), edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, and edm::StreamID::value().

Referenced by MessageLogger().

736  {
737  std::ostringstream ost;
738  ost << "Run: " << iContext.eventID().run();
739  transitionInfoCache_[iContext.streamID().value()]=ost.str();
740  edm::MessageDrop::instance()->runEvent = ost.str();
741  edm::MessageDrop::instance()->setSinglet("PreBeginRun"); // changelog 17
742  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::vector< std::string > transitionInfoCache_
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preStreamEndLumi ( StreamContext const &  iContext)
private

Definition at line 784 of file MessageLogger.cc.

References edm::StreamContext::eventID(), edm::MessageDrop::instance(), edm::EventID::run(), edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, and edm::StreamID::value().

Referenced by MessageLogger().

785  {
786  std::ostringstream ost;
787  auto const& id = iContext.eventID();
788  ost << "Run: " << id.run() << " Lumi: " << id.luminosityBlock();
789  transitionInfoCache_[iContext.streamID().value()]=ost.str();
790  edm::MessageDrop::instance()->runEvent = ost.str();
791  edm::MessageDrop::instance()->setSinglet("PreEndLumi"); // changelog 17
792  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::vector< std::string > transitionInfoCache_
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preStreamEndRun ( StreamContext const &  iContext)
private

Definition at line 751 of file MessageLogger.cc.

References edm::StreamContext::eventID(), edm::MessageDrop::instance(), edm::EventID::run(), edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, and edm::StreamID::value().

Referenced by MessageLogger().

752  {
753  std::ostringstream ost;
754  ost << "End Run: " << iContext.eventID().run();
755  transitionInfoCache_[iContext.streamID().value()]=ost.str();
756  edm::MessageDrop::instance()->runEvent = ost.str();
757  edm::MessageDrop::instance()->setSinglet("PreEndRun"); // changelog 17
758  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
std::vector< std::string > transitionInfoCache_
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::SummarizeInJobReport ( )
static

Definition at line 901 of file MessageLogger.cc.

References fjrSummaryRequested_, edm::MessageLoggerQ::MLqJRS(), and edm::JobReport::reportMessageInfo().

Referenced by jobFailure(), and postEndJob().

901  {
902  if ( fjrSummaryRequested_ ) {
903  std::map<std::string, double> * smp = new std::map<std::string, double> ();
904  MessageLoggerQ::MLqJRS ( smp );
905  Service<JobReport> reportSvc;
906  reportSvc->reportMessageInfo(*smp);
907  delete smp;
908  }
909  }
static void MLqJRS(std::map< std::string, double > *sum_p)
void reportMessageInfo(std::map< std::string, double > const &messageData)
Definition: JobReport.cc:644
void MessageLogger::unEstablish ( const char *  whichPhase)
private

Definition at line 514 of file MessageLogger.cc.

References edm::MessageDrop::instance(), and edm::MessageDrop::setSinglet().

Referenced by postFile(), postSourceEvent(), and postSourceRunLumi().

515  {
516  MessageDrop::instance()->setSinglet( state ); // Change Log 17
517  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
void MessageLogger::unEstablishModule ( const ModuleDescription desc,
const char *  whichPhase 
)
private

Definition at line 429 of file MessageLogger.cc.

References edm::MessageDrop::debugEnabled, edm::MessageDrop::errorEnabled, edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, edm::MessageDrop::setSinglet(), and edm::MessageDrop::warningEnabled.

Referenced by postModuleBeginJob(), postModuleBeginStream(), postModuleConstruction(), postModuleEndJob(), postModuleEndStream(), postModuleEvent(), postModuleGlobalBeginLumi(), postModuleGlobalBeginRun(), postModuleGlobalEndLumi(), postModuleGlobalEndRun(), postModuleStreamBeginLumi(), postModuleStreamBeginRun(), postModuleStreamEndLumi(), postModuleStreamEndRun(), and postSourceConstruction().

431  {
432  // std::cerr << "unestablishModule( " << desc.moduleName() << ") "
433  // << "state = " << *state << "\n";
434 
435  MessageDrop* messageDrop = MessageDrop::instance();
436  messageDrop->setSinglet( state ); // Change Log 17
437  messageDrop->debugEnabled = nonModule_debugEnabled;
438  messageDrop->infoEnabled = nonModule_infoEnabled;
440  messageDrop->errorEnabled = nonModule_errorEnabled; // change log 20
441  }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
void MessageLogger::unEstablishModule ( const ModuleCallingContext desc,
const char *  whichPhase 
)
private

Definition at line 444 of file MessageLogger.cc.

References assert(), edm::MessageDrop::debugEnabled, edm::MessageDrop::errorEnabled, establishModule(), edm::ModuleCallingContext::getTopModuleCallingContext(), edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), edm::GlobalContext::kBeginLuminosityBlock, edm::GlobalContext::kEndLuminosityBlock, edm::ParentContext::kGlobal, lumiInfoBegin_, bookConverter::max, nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, or, edm::ModuleCallingContext::previousModuleOnThread(), runInfoBegin_, edm::MessageDrop::setSinglet(), edmStreamStallGrapher::stream, edm::MessageDrop::streamID, and edm::MessageDrop::warningEnabled.

446  {
447  //Need to reset to what was previously being used on this thread
448  auto previous = mod.previousModuleOnThread();
449  if(previous) {
450  //need to know if we are in a global or stream context
451  auto top = previous->getTopModuleCallingContext();
452  assert(nullptr != top);
453  if (ParentContext::Type::kGlobal == top->type()) {
454  auto globalContext = top->globalContext();
455  assert(nullptr != globalContext);
456  auto tran = globalContext->transition();
459  establishModule(lumiInfoBegin_+globalContext->luminosityBlockIndex(),
460  *previous,s_globalTransitionNames[static_cast<int>(tran)]);
461  } else {
462  establishModule(runInfoBegin_+globalContext->runIndex(),
463  *previous,s_globalTransitionNames[static_cast<int>(tran)]);
464  }
465  } else {
466  auto stream = previous->getStreamContext();
467  establishModule(stream->streamID().value(),*previous,s_streamTransitionNames[static_cast<int>(stream->transition())]);
468  }
469  } else {
470 
471  MessageDrop* messageDrop = MessageDrop::instance();
473  messageDrop->setSinglet( state ); // Change Log 17
474  messageDrop->debugEnabled = nonModule_debugEnabled;
475  messageDrop->infoEnabled = nonModule_infoEnabled;
477  messageDrop->errorEnabled = nonModule_errorEnabled; // change log 20
478  }
479 
480  // std::cerr << "unestablishModule( " << desc.moduleName() << ") "
481  // << "state = " << *state << "\n";
482 
483  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
assert(m_qm.get())
static MessageDrop * instance()
Definition: MessageDrop.cc:60
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
unsigned int streamID
Definition: MessageDrop.h:103
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

Member Data Documentation

bool MessageLogger::anyDebugEnabled_ = false
staticprivate

Definition at line 163 of file MessageLogger.h.

Referenced by anyDebugEnabled(), establish(), establishModule(), and MessageLogger().

bool edm::service::MessageLogger::debugEnabled_
private

Definition at line 162 of file MessageLogger.h.

Referenced by debugEnabled().

std::set<std::string> edm::service::MessageLogger::debugEnabledModules_
private

Definition at line 160 of file MessageLogger.h.

Referenced by establish(), establishModule(), and MessageLogger().

bool MessageLogger::everyDebugEnabled_ = false
staticprivate

Definition at line 164 of file MessageLogger.h.

Referenced by establish(), establishModule(), and MessageLogger().

bool MessageLogger::fjrSummaryRequested_ = false
staticprivate

Definition at line 166 of file MessageLogger.h.

Referenced by MessageLogger(), and SummarizeInJobReport().

unsigned int edm::service::MessageLogger::lumiInfoBegin_ =0
private
bool edm::service::MessageLogger::messageServicePSetHasBeenValidated_
private

Definition at line 167 of file MessageLogger.h.

Referenced by preModuleConstruction(), and preSourceConstruction().

std::string edm::service::MessageLogger::messageServicePSetValidatationResults_
private

Definition at line 168 of file MessageLogger.h.

Referenced by MessageLogger(), preModuleConstruction(), and preSourceConstruction().

bool edm::service::MessageLogger::nonModule_debugEnabled
private

Definition at line 170 of file MessageLogger.h.

Referenced by MessageLogger(), and unEstablishModule().

bool edm::service::MessageLogger::nonModule_errorEnabled
private

Definition at line 173 of file MessageLogger.h.

Referenced by MessageLogger(), and unEstablishModule().

bool edm::service::MessageLogger::nonModule_infoEnabled
private

Definition at line 171 of file MessageLogger.h.

Referenced by MessageLogger(), and unEstablishModule().

bool edm::service::MessageLogger::nonModule_warningEnabled
private

Definition at line 172 of file MessageLogger.h.

Referenced by MessageLogger(), and unEstablishModule().

unsigned int edm::service::MessageLogger::runInfoBegin_ =0
private
std::map<std::string,ELseverityLevel> edm::service::MessageLogger::suppression_levels_
private

Definition at line 161 of file MessageLogger.h.

Referenced by establish(), establishModule(), and MessageLogger().

std::vector<std::string> edm::service::MessageLogger::transitionInfoCache_
private