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
 
void jobFailure ()
 
 MessageLogger (ParameterSet const &, ActivityRegistry &)
 
void postBeginJob ()
 
void postBeginLumi (const edm::LuminosityBlock &, EventSetup const &)
 
void postBeginRun (const edm::Run &, EventSetup const &)
 
void postEndJob ()
 
void postEndLumi (const edm::LuminosityBlock &, EventSetup const &)
 
void postEndRun (const edm::Run &, EventSetup const &)
 
void postEventProcessing (Event const &, EventSetup const &)
 
void postFile ()
 
void postModule (ModuleDescription const &)
 
void postModuleBeginJob (ModuleDescription const &)
 
void postModuleBeginLumi (ModuleDescription const &)
 
void postModuleBeginRun (ModuleDescription const &)
 
void postModuleConstruction (ModuleDescription const &)
 
void postModuleEndJob (ModuleDescription const &)
 
void postModuleEndLumi (ModuleDescription const &)
 
void postModuleEndRun (ModuleDescription const &)
 
void postPathBeginLumi (const std::string &pathname, HLTPathStatus const &)
 
void postPathBeginRun (const std::string &pathname, HLTPathStatus const &)
 
void postPathEndLumi (const std::string &pathname, HLTPathStatus const &)
 
void postPathEndRun (const std::string &pathname, HLTPathStatus const &)
 
void postProcessPath (const std::string &pathname, HLTPathStatus const &)
 
void postSource ()
 
void postSourceConstruction (ModuleDescription const &)
 
void preBeginLumi (const edm::LuminosityBlockID &, const edm::Timestamp &)
 
void preBeginRun (const edm::RunID &, const edm::Timestamp &)
 
void preEndLumi (const edm::LuminosityBlockID &, const edm::Timestamp &)
 
void preEndRun (const edm::RunID &, const edm::Timestamp &)
 
void preEventProcessing (edm::EventID const &, edm::Timestamp const &)
 
void preFile ()
 
void preFileClose ()
 
void preModule (ModuleDescription const &)
 
void preModuleBeginJob (ModuleDescription const &)
 
void preModuleBeginLumi (ModuleDescription const &)
 
void preModuleBeginRun (ModuleDescription const &)
 
void preModuleConstruction (ModuleDescription const &)
 
void preModuleEndJob (ModuleDescription const &)
 
void preModuleEndLumi (ModuleDescription const &)
 
void preModuleEndRun (ModuleDescription const &)
 
void prePathBeginLumi (const std::string &pathname)
 
void prePathBeginRun (const std::string &pathname)
 
void prePathEndLumi (const std::string &pathname)
 
void prePathEndRun (const std::string &pathname)
 
void preProcessPath (const std::string &pathname)
 
void preSource ()
 
void preSourceConstruction (ModuleDescription const &)
 

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 establishModuleCtor (const ModuleDescription &desc, const char *whichPhase)
 
void unEstablish (const char *whichPhase)
 
void unEstablishModule (const ModuleDescription &desc, const char *whichPhase)
 

Private Attributes

edm::EventID curr_event_
 
bool debugEnabled_
 
std::set< std::string > debugEnabledModules_
 
std::map< const
ModuleDescription
*, std::string > 
descToCalcName_
 
bool messageServicePSetHasBeenValidated_
 
std::string messageServicePSetValidatationResults_
 
bool nonModule_debugEnabled
 
bool nonModule_errorEnabled
 
bool nonModule_infoEnabled
 
bool nonModule_warningEnabled
 
std::map< std::string,
ELseverityLevel
suppression_levels_
 

Static Private Attributes

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

Detailed Description

Definition at line 46 of file MessageLogger.h.

Constructor & Destructor Documentation

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(), edm::MessageDrop::instance(), jobFailure(), edm::MessageDrop::jobMode, edm::MessageDrop::jobreport_name, 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(), 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().

111  : debugEnabled_(false)
114  , nonModule_debugEnabled(false)
115  , nonModule_infoEnabled(true)
117  , nonModule_errorEnabled(true) // change log 20
118 {
119  // prepare cfg validation string for later use
121  messageServicePSetValidatationResults_ = validator(iPS); // change log 12
122 
123  typedef std::vector<std::string> vString;
124  vString empty_vString;
125  vString debugModules;
126  vString suppressDebug;
127  vString suppressInfo;
128  vString suppressWarning;
129  vString suppressError; // change log 20
130 
131  try { // change log 13
132  // decide whether a summary should be placed in job report
134  iPS.getUntrackedParameter<bool>("messageSummaryToJobReport", false);
135 
136  // grab list of debug-enabled modules
137  debugModules =
138  iPS.getUntrackedParameter<vString>("debugModules", empty_vString);
139 
140  // grab lists of suppressLEVEL modules
141  suppressDebug =
142  iPS.getUntrackedParameter<vString>("suppressDebug", empty_vString);
143 
144  suppressInfo =
145  iPS.getUntrackedParameter<vString>("suppressInfo", empty_vString);
146 
147  suppressWarning =
148  iPS.getUntrackedParameter<vString>("suppressWarning", empty_vString);
149 
150  suppressError = // change log 20
151  iPS.getUntrackedParameter<vString>("suppressError", empty_vString);
152  } catch (cms::Exception& e) { // change log 13
153  }
154 
155  // Use these lists to prepare a map to use in tracking suppression
156 
157  // Do suppressDebug first and suppressError last to get proper order
158  for( vString::const_iterator it = suppressDebug.begin();
159  it != suppressDebug.end(); ++it ) {
161  }
162 
163  for( vString::const_iterator it = suppressInfo.begin();
164  it != suppressInfo.end(); ++it ) {
166  }
167 
168  for( vString::const_iterator it = suppressWarning.begin();
169  it != suppressWarning.end(); ++it ) {
171  }
172 
173  for( vString::const_iterator it = suppressError.begin(); // change log 20
174  it != suppressError.end(); ++it ) {
176  }
177 
178  // set up for tracking whether current module is debug-enabled
179  // (and info-enabled and warning-enabled)
180  if ( debugModules.empty()) {
181  anyDebugEnabled_ = false; // change log 11
182  MessageDrop::debugEnabled = false; // change log 1
183  } else {
184  anyDebugEnabled_ = true; // change log 11
186  // this will be over-ridden when specific modules are entered
187  }
188 
189  // if ( debugModules.empty()) anyDebugEnabled_ = true; // wrong; change log 11
190  for( vString::const_iterator it = debugModules.begin();
191  it != debugModules.end(); ++it ) {
192  if (*it == "*") {
193  everyDebugEnabled_ = true;
194  } else {
195  debugEnabledModules_.insert(*it);
196  }
197  }
198 
199  // change log 5
200  std::string jr_name = edm::MessageDrop::instance()->jobreport_name;
201  if (!jr_name.empty()) {
202  std::string * jr_name_p = new std::string(jr_name);
203  MessageLoggerQ::MLqJOB( jr_name_p ); // change log 9
204  }
205 
206  // change log 7
207  std::string jm = edm::MessageDrop::instance()->jobMode;
208  std::string * jm_p = new std::string(jm);
209  MessageLoggerQ::MLqMOD( jm_p ); // change log 9
210 
211  MessageLoggerQ::MLqCFG( new ParameterSet(iPS) ); // change log 9
212 
215  iRegistry.watchJobFailure(this,&MessageLogger::jobFailure); // change log 14
216 
219  // change log 3
220 
223  // change log 3
224 
225  iRegistry.watchPreModule(this,&MessageLogger::preModule);
227 
228  iRegistry.watchPreSource(this,&MessageLogger::preSource);
230  // change log 14:
235  iRegistry.watchPreOpenFile(this,&MessageLogger::preFile);
239 
240  // change log 13:
241  // change log 15
254 
257  // change log 14:
260  iRegistry.watchPreEndRun(this,&MessageLogger::preEndRun); // change log 15
266 
277 
278 } // ctor
void watchPostBeginRun(PostBeginRun::slot_type const &iSlot)
void watchPrePathEndLumi(PrePathEndLumi::slot_type const &iSlot)
void watchPostModuleConstruction(PostModuleConstruction::slot_type const &iSlot)
void preModuleBeginLumi(ModuleDescription const &)
void preModuleEndJob(ModuleDescription const &)
void watchPostModuleBeginLumi(PostModuleBeginLumi::slot_type const &iSlot)
void postModuleConstruction(ModuleDescription const &)
void preEndLumi(const edm::LuminosityBlockID &, const edm::Timestamp &)
void postBeginRun(const edm::Run &, EventSetup const &)
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
std::string jobreport_name
Definition: MessageDrop.h:103
void postPathEndLumi(const std::string &pathname, HLTPathStatus const &)
void watchPrePathEndRun(PrePathEndRun::slot_type const &iSlot)
void preBeginRun(const edm::RunID &, const edm::Timestamp &)
tuple suppressDebug
Definition: MergeJob_cfg.py:30
void watchPreModuleConstruction(PreModuleConstruction::slot_type const &iSlot)
void preModuleBeginJob(ModuleDescription const &)
void watchPostModule(PostModule::slot_type const &iSlot)
void watchPreProcessEvent(PreProcessEvent::slot_type const &iSlot)
void watchPreSourceConstruction(PreSourceConstruction::slot_type const &iSlot)
void watchPreEndLumi(PreEndLumi::slot_type const &iSlot)
void watchPostSourceConstruction(PostSourceConstruction::slot_type const &iSlot)
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void watchPostPathEndRun(PostPathEndRun::slot_type const &iSlot)
static bool debugEnabled
Definition: MessageDrop.h:105
void postEndRun(const edm::Run &, EventSetup const &)
void prePathEndLumi(const std::string &pathname)
void preSourceConstruction(ModuleDescription const &)
void watchPostEndLumi(PostEndLumi::slot_type const &iSlot)
void preEndRun(const edm::RunID &, const edm::Timestamp &)
void postModuleEndLumi(ModuleDescription const &)
void watchPreModuleEndLumi(PreModuleEndLumi::slot_type const &iSlot)
void postPathEndRun(const std::string &pathname, HLTPathStatus const &)
void watchPostPathEndLumi(PostPathEndLumi::slot_type const &iSlot)
void postPathBeginLumi(const std::string &pathname, HLTPathStatus const &)
void watchPreEndRun(PreEndRun::slot_type const &iSlot)
void watchPreModule(PreModule::slot_type const &iSlot)
void postEventProcessing(Event const &, EventSetup const &)
void postModuleEndRun(ModuleDescription const &)
void watchJobFailure(JobFailure::slot_type const &iSlot)
convenience function for attaching to signal
void watchPreOpenFile(PreOpenFile::slot_type const &iSlot)
void watchPostProcessEvent(PostProcessEvent::slot_type const &iSlot)
void watchPostCloseFile(PostCloseFile::slot_type const &iSlot)
void watchPreModuleEndRun(PreModuleEndRun::slot_type const &iSlot)
void watchPrePathBeginRun(PrePathBeginRun::slot_type const &iSlot)
void postEndLumi(const edm::LuminosityBlock &, EventSetup const &)
void watchPostSourceRun(PostSourceRun::slot_type const &iSlot)
void preModuleEndRun(ModuleDescription const &)
static void MLqCFG(ParameterSet *p)
std::string jobMode
Definition: MessageDrop.h:104
void watchPreSourceLumi(PreSourceLumi::slot_type const &iSlot)
void watchPostModuleEndRun(PostModuleEndRun::slot_type const &iSlot)
void watchPreSource(PreSource::slot_type const &iSlot)
void watchPreModuleEndJob(PreModuleEndJob::slot_type const &iSlot)
void postBeginLumi(const edm::LuminosityBlock &, EventSetup const &)
void prePathBeginLumi(const std::string &pathname)
void watchPreSourceRun(PreSourceRun::slot_type const &iSlot)
void preModuleConstruction(ModuleDescription const &)
void watchPostBeginLumi(PostBeginLumi::slot_type const &iSlot)
void watchPreModuleBeginJob(PreModuleBeginJob::slot_type const &iSlot)
void watchPrePathBeginLumi(PrePathBeginLumi::slot_type const &iSlot)
void postModuleBeginRun(ModuleDescription const &)
void watchPostModuleBeginRun(PostModuleBeginRun::slot_type const &iSlot)
void watchPostPathBeginRun(PostPathBeginRun::slot_type const &iSlot)
void preModuleBeginRun(ModuleDescription const &)
void postModuleBeginLumi(ModuleDescription const &)
void preEventProcessing(edm::EventID const &, edm::Timestamp const &)
std::set< std::string > debugEnabledModules_
void watchPostSourceLumi(PostSourceLumi::slot_type const &iSlot)
void watchPreCloseFile(PreCloseFile::slot_type const &iSlot)
void postSourceConstruction(ModuleDescription const &)
static void MLqMOD(std::string *jm)
void watchPostOpenFile(PostOpenFile::slot_type const &iSlot)
void preModuleEndLumi(ModuleDescription const &)
void postModuleEndJob(ModuleDescription const &)
void postProcessPath(const std::string &pathname, HLTPathStatus const &)
void watchPostSource(PostSource::slot_type const &iSlot)
void prePathBeginRun(const std::string &pathname)
void postModuleBeginJob(ModuleDescription const &)
void watchPostModuleBeginJob(PostModuleBeginJob::slot_type const &iSlot)
void postPathBeginRun(const std::string &pathname, HLTPathStatus const &)
static void MLqJOB(std::string *j)
void watchPreBeginLumi(PreBeginLumi::slot_type const &iSlot)
void preProcessPath(const std::string &pathname)
void preBeginLumi(const edm::LuminosityBlockID &, const edm::Timestamp &)
void preModule(ModuleDescription const &)
void watchPostEndRun(PostEndRun::slot_type const &iSlot)
tuple suppressWarning
Definition: MergeJob_cfg.py:28
void watchPreModuleBeginLumi(PreModuleBeginLumi::slot_type const &iSlot)
std::string messageServicePSetValidatationResults_
void watchPreProcessPath(PreProcessPath::slot_type const &iSlot)
void watchPostModuleEndJob(PostModuleEndJob::slot_type const &iSlot)
void postModule(ModuleDescription const &)
void watchPreModuleBeginRun(PreModuleBeginRun::slot_type const &iSlot)
std::map< std::string, ELseverityLevel > suppression_levels_
void watchPostModuleEndLumi(PostModuleEndLumi::slot_type const &iSlot)
void watchPostPathBeginLumi(PostPathBeginLumi::slot_type const &iSlot)
void watchPostProcessPath(PostProcessPath::slot_type const &iSlot)
void prePathEndRun(const std::string &pathname)
void watchPreBeginRun(PreBeginRun::slot_type const &iSlot)
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal

Member Function Documentation

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

Definition at line 113 of file MessageLogger.h.

References anyDebugEnabled_.

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

Definition at line 110 of file MessageLogger.h.

References debugEnabled_.

110 { return debugEnabled_; }
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, edm::MessageDrop::instance(), edm::MessageDrop::setSinglet(), suppression_levels_, and edm::MessageDrop::warningEnabled.

Referenced by preFile(), preFileClose(), and preSource().

384 {
385  MessageDrop* messageDrop = MessageDrop::instance();
386  messageDrop->setSinglet( state ); // Change Log 17
387  if (!anyDebugEnabled_) {
388  messageDrop->debugEnabled = false;
389  } else if (everyDebugEnabled_) {
390  messageDrop->debugEnabled = true;
391  } else {
392  messageDrop->debugEnabled =
393  debugEnabledModules_.count(state); // change log 8
394  }
395  std::map<const std::string,ELseverityLevel>::const_iterator it =
396  suppression_levels_.find(state); // change log 8
397  if ( it != suppression_levels_.end() ) {
398  messageDrop->debugEnabled = messageDrop->debugEnabled
399  && (it->second < ELseverityLevel::ELsev_success );
400  messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info );
401  messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning );
402  messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error );
403  } else {
404  messageDrop->infoEnabled = true;
405  messageDrop->warningEnabled = true;
406  messageDrop->errorEnabled = true;
407  }
408 }
static bool warningEnabled
Definition: MessageDrop.h:107
static MessageDrop * instance()
Definition: MessageDrop.cc:65
static bool debugEnabled
Definition: MessageDrop.h:105
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
static bool infoEnabled
Definition: MessageDrop.h:106
static bool errorEnabled
Definition: MessageDrop.h:108
std::set< std::string > debugEnabledModules_
char state
Definition: procUtils.cc:75
std::map< std::string, ELseverityLevel > suppression_levels_
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, edm::MessageDrop::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 preModule(), preModuleBeginJob(), preModuleBeginLumi(), preModuleBeginRun(), preModuleEndJob(), preModuleEndLumi(), and preModuleEndRun().

287 {
288  MessageDrop* messageDrop = MessageDrop::instance();
289  nonModule_debugEnabled = messageDrop->debugEnabled;
290  nonModule_infoEnabled = messageDrop->infoEnabled;
292  nonModule_errorEnabled = messageDrop->errorEnabled; // change log 20
293 
294  // std::cerr << "establishModule( " << desc.moduleName() << ")\n";
295  // Change Log 17
296  messageDrop->setModuleWithPhase( desc.moduleName(), desc.moduleLabel(),
297  &desc, whichPhase );
298  // Removed caching per change 17 - caching is now done in MessageDrop.cc
299  // in theContext() method, and only happens if a message is actually issued.
300 
301  if (!anyDebugEnabled_) {
302  messageDrop->debugEnabled = false;
303  } else if (everyDebugEnabled_) {
304  messageDrop->debugEnabled = true;
305  } else {
306  messageDrop->debugEnabled =
307  debugEnabledModules_.count(desc.moduleLabel());
308  }
309 
310  std::map<const std::string,ELseverityLevel>::const_iterator it =
311  suppression_levels_.find(desc.moduleLabel());
312  if ( it != suppression_levels_.end() ) {
313  messageDrop->debugEnabled = messageDrop->debugEnabled
314  && (it->second < ELseverityLevel::ELsev_success );
315  messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info );
316  messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning );
317  messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error );
318  } else {
319  messageDrop->infoEnabled = true;
320  messageDrop->warningEnabled = true;
321  messageDrop->errorEnabled = true;
322  }
323 } // establishModule
static bool warningEnabled
Definition: MessageDrop.h:107
void setModuleWithPhase(std::string const &name, std::string const &label, const void *moduleID, const char *phase)
Definition: MessageDrop.cc:243
static MessageDrop * instance()
Definition: MessageDrop.cc:65
std::string const & moduleName() const
static bool debugEnabled
Definition: MessageDrop.h:105
std::string const & moduleLabel() const
static bool infoEnabled
Definition: MessageDrop.h:106
static bool errorEnabled
Definition: MessageDrop.h:108
std::set< std::string > debugEnabledModules_
std::map< std::string, ELseverityLevel > suppression_levels_
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, edm::MessageDrop::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().

328 {
329  MessageDrop* messageDrop = MessageDrop::instance();
330  nonModule_debugEnabled = messageDrop->debugEnabled;
331  nonModule_infoEnabled = messageDrop->infoEnabled;
333  nonModule_errorEnabled = messageDrop->errorEnabled; // change log 20
334 
335  // std::cerr << "establishModuleCtor( " << desc.moduleName() << ")\n";
336  // Change Log 17
337  messageDrop->setModuleWithPhase( desc.moduleName(), desc.moduleLabel(),
338  0, whichPhase );
339  // Cannot cache the value to improve performance because addresses are
340  // not yet permanent - see change log 16. So did not provide desc ptr.
341 
342  if (!anyDebugEnabled_) {
343  messageDrop->debugEnabled = false;
344  } else if (everyDebugEnabled_) {
345  messageDrop->debugEnabled = true;
346  } else {
347  messageDrop->debugEnabled =
348  debugEnabledModules_.count(desc.moduleLabel());
349  }
350 
351  std::map<const std::string,ELseverityLevel>::const_iterator it =
352  suppression_levels_.find(desc.moduleLabel());
353  if ( it != suppression_levels_.end() ) {
354  messageDrop->debugEnabled = messageDrop->debugEnabled
355  && (it->second < ELseverityLevel::ELsev_success );
356  messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info );
357  messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning );
358  messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error );
359  } else {
360  messageDrop->infoEnabled = true;
361  messageDrop->warningEnabled = true;
362  messageDrop->errorEnabled = true;
363  }
364  messageDrop->snapshot(); // Change Log 18
365 } // establishModuleCtor
static bool warningEnabled
Definition: MessageDrop.h:107
void setModuleWithPhase(std::string const &name, std::string const &label, const void *moduleID, const char *phase)
Definition: MessageDrop.cc:243
static MessageDrop * instance()
Definition: MessageDrop.cc:65
std::string const & moduleName() const
static bool debugEnabled
Definition: MessageDrop.h:105
std::string const & moduleLabel() const
static bool infoEnabled
Definition: MessageDrop.h:106
static bool errorEnabled
Definition: MessageDrop.h:108
std::set< std::string > debugEnabledModules_
std::map< std::string, ELseverityLevel > suppression_levels_
void edm::service::MessageLogger::fillErrorObj ( edm::ErrorObj obj) const
void MessageLogger::jobFailure ( )

Definition at line 686 of file MessageLogger.cc.

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

Referenced by MessageLogger().

687 {
688  MessageDrop* messageDrop = MessageDrop::instance();
689  messageDrop->moduleName = "jobFailure";
690  SummarizeInJobReport(); // Put summary info into Job Rep // change log 10
691  MessageLoggerQ::MLqSUM ( ); // trigger summary info. // change log 9
692 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
std::string moduleName
Definition: MessageDrop.h:93
static void SummarizeInJobReport()
static void MLqSUM()
void MessageLogger::postBeginJob ( )

Definition at line 515 of file MessageLogger.cc.

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

Referenced by MessageLogger().

516 {
517  MessageDrop::instance()->runEvent = "BeforeEvents";
518  MessageDrop::instance()->setSinglet("AfterBeginJob"); // Change Log 17
519 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postBeginLumi ( const edm::LuminosityBlock ,
EventSetup const &   
)

Definition at line 657 of file MessageLogger.cc.

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

Referenced by MessageLogger().

658 {
659  edm::MessageDrop::instance()->runEvent = "PostBeginLumi";
660  edm::MessageDrop::instance()->setSinglet("PostBeginLumi"); // changelog 17
661 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postBeginRun ( const edm::Run ,
EventSetup const &   
)

Definition at line 566 of file MessageLogger.cc.

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

Referenced by MessageLogger().

567 {
568  edm::MessageDrop::instance()->runEvent = "PostBeginRun";
569  edm::MessageDrop::instance()->setSinglet("PostBeginRun"); // changelog 17
570  // Note - module name had not been set here
571 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postEndJob ( )

Definition at line 679 of file MessageLogger.cc.

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

Referenced by MessageLogger().

680 {
681  SummarizeInJobReport(); // Put summary info into Job Rep // change log 10
682  MessageLoggerQ::MLqSUM ( ); // trigger summary info. // change log 9
683 }
static void SummarizeInJobReport()
static void MLqSUM()
void MessageLogger::postEndLumi ( const edm::LuminosityBlock ,
EventSetup const &   
)

Definition at line 672 of file MessageLogger.cc.

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

Referenced by MessageLogger().

673 {
674  edm::MessageDrop::instance()->runEvent = "PostEndLumi";
675  edm::MessageDrop::instance()->setSinglet("PostEndLumi"); // changelog 17
676 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postEndRun ( const edm::Run ,
EventSetup const &   
)

Definition at line 641 of file MessageLogger.cc.

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

Referenced by MessageLogger().

642 {
643  edm::MessageDrop::instance()->runEvent = "PostEndRun";
644  edm::MessageDrop::instance()->setSinglet("PostEndRun"); // changelog 17
645 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postEventProcessing ( Event const &  ,
EventSetup const &   
)

Definition at line 552 of file MessageLogger.cc.

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

Referenced by MessageLogger().

553 {
554  edm::MessageDrop::instance()->runEvent = "PostProcessEvent";
555 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::postFile ( )

Definition at line 533 of file MessageLogger.cc.

References unEstablish().

Referenced by MessageLogger().

534 { unEstablish("AfterFile"); }
void unEstablish(const char *whichPhase)
void MessageLogger::postModule ( ModuleDescription const &  iDescription)

Definition at line 483 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

484 { unEstablishModule (iDescription, "PostModule"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleBeginJob ( ModuleDescription const &  iDescription)

Definition at line 442 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

443 { unEstablishModule (iDescription, "AfterModBeginJob"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleBeginLumi ( ModuleDescription const &  iDescription)

Definition at line 475 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

476 { unEstablishModule (iDescription, "AfterModBeginLumi"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleBeginRun ( ModuleDescription const &  iDescription)

Definition at line 467 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

468 { unEstablishModule (iDescription, "AfterModBeginRun"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleConstruction ( ModuleDescription const &  iDescription)

Definition at line 434 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

435 { unEstablishModule (iDescription, "AfterModConstruction"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleEndJob ( ModuleDescription const &  iDescription)

Definition at line 507 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

508 { unEstablishModule (iDescription, "AfterModEndJob"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleEndLumi ( ModuleDescription const &  iDescription)

Definition at line 491 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

492 { unEstablishModule (iDescription, "AfterModEndLumi"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postModuleEndRun ( ModuleDescription const &  iDescription)

Definition at line 499 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

500 { unEstablishModule (iDescription, "AfterModEndRun"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::postPathBeginLumi ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 602 of file MessageLogger.cc.

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

Referenced by MessageLogger().

603 {
604  edm::MessageDrop::instance()->setSinglet("PostPathBeginLumi"); // changelog 17
605 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
void MessageLogger::postPathBeginRun ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 579 of file MessageLogger.cc.

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

Referenced by MessageLogger().

580 {
581  edm::MessageDrop::instance()->setSinglet("PostPathBeginRun"); // changelog 17
582 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
void MessageLogger::postPathEndLumi ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 614 of file MessageLogger.cc.

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

Referenced by MessageLogger().

615 {
616  edm::MessageDrop::instance()->setSinglet("PostPathEndLumi"); // changelog 17
617 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
void MessageLogger::postPathEndRun ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 591 of file MessageLogger.cc.

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

Referenced by MessageLogger().

592 {
593  edm::MessageDrop::instance()->setSinglet("PostPathEndRun"); // changelog 17
594 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
void MessageLogger::postProcessPath ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 626 of file MessageLogger.cc.

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

Referenced by MessageLogger().

627 {
628  edm::MessageDrop::instance()->setSinglet("PostProcessPath"); // changelog 17
629 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
void MessageLogger::postSource ( )

Definition at line 526 of file MessageLogger.cc.

References unEstablish().

Referenced by MessageLogger().

527 { unEstablish("AfterSource"); }
void unEstablish(const char *whichPhase)
void MessageLogger::postSourceConstruction ( ModuleDescription const &  iDescription)

Definition at line 459 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

460 { unEstablishModule (iDescription, "AfterSourceConstruction"); }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preBeginLumi ( const edm::LuminosityBlockID iID,
const edm::Timestamp  
)

Definition at line 648 of file MessageLogger.cc.

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

Referenced by MessageLogger().

650 {
651  std::ostringstream ost;
652  ost << "Run: " << iID.run() << " Lumi: " << iID.luminosityBlock();
653  edm::MessageDrop::instance()->runEvent = ost.str();
654  edm::MessageDrop::instance()->setSinglet("PreBeginLumi"); // changelog 17
655 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
RunNumber_t run() const
LuminosityBlockNumber_t luminosityBlock() const
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preBeginRun ( const edm::RunID iID,
const edm::Timestamp  
)

Definition at line 558 of file MessageLogger.cc.

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

Referenced by MessageLogger().

560 {
561  std::ostringstream ost;
562  ost << "Run: " << iID.run();
563  edm::MessageDrop::instance()->runEvent = ost.str();
564  edm::MessageDrop::instance()->setSinglet("PreBeginRun"); // changelog 17
565 }
RunNumber_t run() const
Definition: RunID.h:44
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preEndLumi ( const edm::LuminosityBlockID iID,
const edm::Timestamp  
)

Definition at line 664 of file MessageLogger.cc.

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

Referenced by MessageLogger().

666 {
667  std::ostringstream ost;
668  ost << "Run: " << iID.run() << " Lumi: " << iID.luminosityBlock();
669  edm::MessageDrop::instance()->runEvent = ost.str();
670  edm::MessageDrop::instance()->setSinglet("PreEndLumi"); // changelog 17
671 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
RunNumber_t run() const
LuminosityBlockNumber_t luminosityBlock() const
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preEndRun ( const edm::RunID iID,
const edm::Timestamp  
)

Definition at line 632 of file MessageLogger.cc.

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

Referenced by MessageLogger().

634 {
635  std::ostringstream ost;
636  ost << "End Run: " << iID.run();
637  edm::MessageDrop::instance()->runEvent = ost.str();
638  edm::MessageDrop::instance()->setSinglet("PreEndRun"); // changelog 17
639 }
RunNumber_t run() const
Definition: RunID.h:44
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preEventProcessing ( edm::EventID const &  iID,
edm::Timestamp const &   
)

Definition at line 538 of file MessageLogger.cc.

References curr_event_, edm::EventID::event(), edm::MessageDrop::instance(), edm::EventID::run(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

540 {
541  std::ostringstream ost;
542  curr_event_ = iID;
543  ost << "Run: " << curr_event_.run()
544  << " Event: " << curr_event_.event(); // change log 2
545  edm::MessageDrop::instance()->runEvent = ost.str();
546  edm::MessageDrop::instance()->setSinglet("PreEventProcessing");// changelog 17
547  // Note - module name had not been set here Similarly in other places where
548  // RunEvent carries the new information; we add setSinglet for module name.
549 }
RunNumber_t run() const
Definition: EventID.h:42
EventNumber_t event() const
Definition: EventID.h:44
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
std::string runEvent
Definition: MessageDrop.h:102
void MessageLogger::preFile ( )

Definition at line 529 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

530 { establish("file_open"); }
void establish(const char *whichPhase)
void MessageLogger::preFileClose ( )

Definition at line 531 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

532 { establish("file_close"); }
void establish(const char *whichPhase)
void MessageLogger::preModule ( ModuleDescription const &  desc)

Definition at line 479 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

480 {
481  establishModule (desc,""); // ChangeLog 13
482 }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preModuleBeginJob ( ModuleDescription const &  desc)

Definition at line 438 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

439 {
440  establishModule (desc,"@beginJob"); // ChangeLog 13
441 }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preModuleBeginLumi ( ModuleDescription const &  desc)

Definition at line 471 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

472 {
473  establishModule (desc,"@beginLumi"); // ChangeLog 13
474 }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preModuleBeginRun ( ModuleDescription const &  desc)

Definition at line 463 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

464 {
465  establishModule (desc,"@beginRun"); // ChangeLog 13
466 }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
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().

422 {
423  if (!messageServicePSetHasBeenValidated_) { // change log 12
425  throw ( edm::Exception
428  ) );
429  }
431  }
432  establishModuleCtor (desc,"@ctor"); // ChangeLog 16
433 }
void establishModuleCtor(const ModuleDescription &desc, const char *whichPhase)
std::string messageServicePSetValidatationResults_
void MessageLogger::preModuleEndJob ( ModuleDescription const &  desc)

Definition at line 503 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

504 {
505  establishModule (desc,"@endJob"); // ChangeLog 13
506 }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preModuleEndLumi ( ModuleDescription const &  desc)

Definition at line 487 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

488 {
489  establishModule (desc,"@endLumi"); // ChangeLog 13
490 }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::preModuleEndRun ( ModuleDescription const &  desc)

Definition at line 495 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

496 {
497  establishModule (desc,"@endRun"); // ChangeLog 13
498 }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
void MessageLogger::prePathBeginLumi ( const std::string &  pathname)

Definition at line 597 of file MessageLogger.cc.

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

Referenced by MessageLogger().

598 {
599  edm::MessageDrop::instance()->setPath( "LPath: ", pathname); // change log 17
600 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setPath(const char *type, std::string const &pathname)
Definition: MessageDrop.cc:251
void MessageLogger::prePathBeginRun ( const std::string &  pathname)

Definition at line 574 of file MessageLogger.cc.

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

Referenced by MessageLogger().

575 {
576  edm::MessageDrop::instance()->setPath( "RPath: ", pathname); // change log 17
577 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setPath(const char *type, std::string const &pathname)
Definition: MessageDrop.cc:251
void MessageLogger::prePathEndLumi ( const std::string &  pathname)

Definition at line 608 of file MessageLogger.cc.

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

Referenced by MessageLogger().

609 {
610  edm::MessageDrop::instance()->setPath( "LPathEnd: ", pathname);
611  // change log 17
612 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setPath(const char *type, std::string const &pathname)
Definition: MessageDrop.cc:251
void MessageLogger::prePathEndRun ( const std::string &  pathname)

Definition at line 585 of file MessageLogger.cc.

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

Referenced by MessageLogger().

586 {
587  edm::MessageDrop::instance()->setPath( "RPathEnd: ", pathname);
588  // change log 17
589 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setPath(const char *type, std::string const &pathname)
Definition: MessageDrop.cc:251
void MessageLogger::preProcessPath ( const std::string &  pathname)

Definition at line 620 of file MessageLogger.cc.

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

Referenced by MessageLogger().

621 {
622  edm::MessageDrop::instance()->setPath( "PreProcPath ", pathname);
623  // change log 17
624 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setPath(const char *type, std::string const &pathname)
Definition: MessageDrop.cc:251
void MessageLogger::preSource ( )

Definition at line 522 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

523 {
524  establish("source");
525 }
void establish(const char *whichPhase)
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().

447 {
448  if (!messageServicePSetHasBeenValidated_) { // change log 12
450  throw ( edm::Exception
453  ) );
454  }
456  }
457  establishModuleCtor (desc,"@sourceConstruction"); // ChangeLog 16
458 }
void establishModuleCtor(const ModuleDescription &desc, const char *whichPhase)
std::string messageServicePSetValidatationResults_
void MessageLogger::SummarizeInJobReport ( )
static

Definition at line 700 of file MessageLogger.cc.

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

Referenced by jobFailure(), and postEndJob().

700  {
701  if ( fjrSummaryRequested_ ) {
702  std::map<std::string, double> * smp = new std::map<std::string, double> ();
703  MessageLoggerQ::MLqJRS ( smp );
704  Service<JobReport> reportSvc;
705  reportSvc->reportMessageInfo(*smp);
706  delete smp;
707  }
708 }
static void MLqJRS(std::map< std::string, double > *sum_p)
void reportMessageInfo(std::map< std::string, double > const &messageData)
Definition: JobReport.cc:764
void MessageLogger::unEstablish ( const char *  whichPhase)
private

Definition at line 411 of file MessageLogger.cc.

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

Referenced by postFile(), and postSource().

412 {
413  MessageDrop::instance()->setSinglet( state ); // Change Log 17
414 }
static MessageDrop * instance()
Definition: MessageDrop.cc:65
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
char state
Definition: procUtils.cc:75
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, edm::MessageDrop::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().

370 {
371  // std::cerr << "unestablishModule( " << desc.moduleName() << ") "
372  // << "state = " << *state << "\n";
373 
374  MessageDrop* messageDrop = MessageDrop::instance();
375  messageDrop->setSinglet( state ); // Change Log 17
376  messageDrop->debugEnabled = nonModule_debugEnabled;
377  messageDrop->infoEnabled = nonModule_infoEnabled;
379  messageDrop->errorEnabled = nonModule_errorEnabled; // change log 20
380 }
static bool warningEnabled
Definition: MessageDrop.h:107
static MessageDrop * instance()
Definition: MessageDrop.cc:65
static bool debugEnabled
Definition: MessageDrop.h:105
void setSinglet(const char *sing)
Definition: MessageDrop.cc:256
static bool infoEnabled
Definition: MessageDrop.h:106
static bool errorEnabled
Definition: MessageDrop.h:108
char state
Definition: procUtils.cc:75

Member Data Documentation

bool MessageLogger::anyDebugEnabled_ = false
staticprivate
edm::EventID edm::service::MessageLogger::curr_event_
private

Definition at line 130 of file MessageLogger.h.

Referenced by preEventProcessing().

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

Definition at line 134 of file MessageLogger.h.

Referenced by debugEnabled().

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

Definition at line 132 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 136 of file MessageLogger.h.

bool MessageLogger::everyDebugEnabled_ = false
staticprivate

Definition at line 138 of file MessageLogger.h.

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

bool MessageLogger::fjrSummaryRequested_ = false
staticprivate

Definition at line 140 of file MessageLogger.h.

Referenced by MessageLogger(), and SummarizeInJobReport().

bool edm::service::MessageLogger::messageServicePSetHasBeenValidated_
private

Definition at line 141 of file MessageLogger.h.

Referenced by preModuleConstruction(), and preSourceConstruction().

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

Definition at line 142 of file MessageLogger.h.

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

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

Definition at line 144 of file MessageLogger.h.

Referenced by establishModule(), establishModuleCtor(), and unEstablishModule().

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

Definition at line 147 of file MessageLogger.h.

Referenced by establishModule(), establishModuleCtor(), and unEstablishModule().

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

Definition at line 145 of file MessageLogger.h.

Referenced by establishModule(), establishModuleCtor(), and unEstablishModule().

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

Definition at line 146 of file MessageLogger.h.

Referenced by establishModule(), establishModuleCtor(), and unEstablishModule().

std::map<std::string,ELseverityLevel> edm::service::MessageLogger::suppression_levels_
private

Definition at line 133 of file MessageLogger.h.

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