CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

edm::service::MessageLogger Class Reference

#include <MessageLogger.h>

List of all members.

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 (std::string const &, bool)
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(), instance, jobFailure(), messageServicePSetValidatationResults_, edm::MessageLoggerQ::MLqCFG(), edm::MessageLoggerQ::MLqJOB(), edm::MessageLoggerQ::MLqMOD(), postBeginJob(), postBeginLumi(), postBeginRun(), postEndJob(), postEndLumi(), postEndRun(), postEventProcessing(), postFile(), postModule(), postModuleBeginJob(), postModuleBeginLumi(), postModuleBeginRun(), postModuleConstruction(), postModuleEndJob(), postModuleEndLumi(), postModuleEndRun(), postPathBeginLumi(), postPathBeginRun(), postPathEndLumi(), postPathEndRun(), postProcessPath(), postSource(), postSourceConstruction(), preBeginLumi(), preBeginRun(), preEndLumi(), preEndRun(), preEventProcessing(), preFile(), preFileClose(), preModule(), preModuleBeginJob(), preModuleBeginLumi(), preModuleBeginRun(), preModuleConstruction(), preModuleEndJob(), preModuleEndLumi(), preModuleEndRun(), prePathBeginLumi(), prePathBeginRun(), prePathEndLumi(), prePathEndRun(), preProcessPath(), preSource(), preSourceConstruction(), AlCaHLTBitMon_QueryRunRegistry::string, MergeJob_cfg::suppressDebug, EcnaSystemPythonModuleInsert_1::suppressInfo, suppression_levels_, MergeJob_cfg::suppressWarning, edm::ActivityRegistry::watchJobFailure(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostBeginLumi(), edm::ActivityRegistry::watchPostBeginRun(), edm::ActivityRegistry::watchPostCloseFile(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEndLumi(), edm::ActivityRegistry::watchPostEndRun(), edm::ActivityRegistry::watchPostModule(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleBeginLumi(), edm::ActivityRegistry::watchPostModuleBeginRun(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostModuleEndJob(), edm::ActivityRegistry::watchPostModuleEndLumi(), edm::ActivityRegistry::watchPostModuleEndRun(), edm::ActivityRegistry::watchPostOpenFile(), edm::ActivityRegistry::watchPostPathBeginLumi(), edm::ActivityRegistry::watchPostPathBeginRun(), edm::ActivityRegistry::watchPostPathEndLumi(), edm::ActivityRegistry::watchPostPathEndRun(), edm::ActivityRegistry::watchPostProcessEvent(), edm::ActivityRegistry::watchPostProcessPath(), edm::ActivityRegistry::watchPostSource(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPostSourceLumi(), edm::ActivityRegistry::watchPostSourceRun(), edm::ActivityRegistry::watchPreBeginLumi(), edm::ActivityRegistry::watchPreBeginRun(), edm::ActivityRegistry::watchPreCloseFile(), edm::ActivityRegistry::watchPreEndLumi(), edm::ActivityRegistry::watchPreEndRun(), edm::ActivityRegistry::watchPreModule(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleBeginLumi(), edm::ActivityRegistry::watchPreModuleBeginRun(), edm::ActivityRegistry::watchPreModuleConstruction(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEndLumi(), edm::ActivityRegistry::watchPreModuleEndRun(), edm::ActivityRegistry::watchPreOpenFile(), edm::ActivityRegistry::watchPrePathBeginLumi(), edm::ActivityRegistry::watchPrePathBeginRun(), edm::ActivityRegistry::watchPrePathEndLumi(), edm::ActivityRegistry::watchPrePathEndRun(), edm::ActivityRegistry::watchPreProcessEvent(), edm::ActivityRegistry::watchPreProcessPath(), edm::ActivityRegistry::watchPreSource(), edm::ActivityRegistry::watchPreSourceConstruction(), edm::ActivityRegistry::watchPreSourceLumi(), and edm::ActivityRegistry::watchPreSourceRun().

        : debugEnabled_(false)
        , messageServicePSetHasBeenValidated_(false)
        , messageServicePSetValidatationResults_() 
        , nonModule_debugEnabled(false)
        , nonModule_infoEnabled(true)
        , nonModule_warningEnabled(true)
        , nonModule_errorEnabled(true)                          // change log 20
{
  // prepare cfg validation string for later use
  MessageServicePSetValidation validator;
  messageServicePSetValidatationResults_ = validator(iPS);      // change log 12
  
  typedef std::vector<std::string> vString;
  vString empty_vString;
  vString debugModules;
  vString suppressDebug;
  vString suppressInfo;
  vString suppressWarning;
  vString suppressError;                                        // change log 20

  try {                                                         // change log 13
    // decide whether a summary should be placed in job report
    fjrSummaryRequested_ = 
          iPS.getUntrackedParameter<bool>("messageSummaryToJobReport", false);

    // grab list of debug-enabled modules
    debugModules = 
          iPS.getUntrackedParameter<vString>("debugModules", empty_vString);

    // grab lists of suppressLEVEL modules
    suppressDebug = 
          iPS.getUntrackedParameter<vString>("suppressDebug", empty_vString);

    suppressInfo = 
          iPS.getUntrackedParameter<vString>("suppressInfo", empty_vString);

    suppressWarning = 
          iPS.getUntrackedParameter<vString>("suppressWarning", empty_vString);

    suppressError =                                             // change log 20
          iPS.getUntrackedParameter<vString>("suppressError", empty_vString);
  } catch (cms::Exception& e) {                                 // change log 13
  }
  
  // Use these lists to prepare a map to use in tracking suppression 

  // Do suppressDebug first and suppressError last to get proper order
  for( vString::const_iterator it  = suppressDebug.begin();
                               it != suppressDebug.end(); ++it ) {
    suppression_levels_[*it] = ELseverityLevel::ELsev_success;
  }
  
  for( vString::const_iterator it  = suppressInfo.begin();
                               it != suppressInfo.end(); ++it ) {
    suppression_levels_[*it] = ELseverityLevel::ELsev_info;
  }
  
  for( vString::const_iterator it  = suppressWarning.begin();
                               it != suppressWarning.end(); ++it ) {
    suppression_levels_[*it] = ELseverityLevel::ELsev_warning;
  }

  for( vString::const_iterator it  = suppressError.begin();     // change log 20
                               it != suppressError.end(); ++it ) {
    suppression_levels_[*it] = ELseverityLevel::ELsev_error;
  }
  
  // set up for tracking whether current module is debug-enabled 
  // (and info-enabled and warning-enabled)
  if ( debugModules.empty()) {
    anyDebugEnabled_ = false;                                   // change log 11
    MessageDrop::debugEnabled = false;          // change log 1
  } else {
    anyDebugEnabled_ = true;                                    // change log 11
    MessageDrop::debugEnabled = false;
    // this will be over-ridden when specific modules are entered
  }

  // if ( debugModules.empty()) anyDebugEnabled_ = true; // wrong; change log 11
  for( vString::const_iterator it  = debugModules.begin();
                               it != debugModules.end(); ++it ) {
    if (*it == "*") { 
        everyDebugEnabled_ = true;
      } else {
        debugEnabledModules_.insert(*it); 
      }
  }

                                                                // change log 5
  std::string jr_name = edm::MessageDrop::instance()->jobreport_name; 
  if (!jr_name.empty()) {                       
    std::string * jr_name_p = new std::string(jr_name);
    MessageLoggerQ::MLqJOB( jr_name_p );                        // change log 9
  }
  
                                                                // change log 7
  std::string jm = edm::MessageDrop::instance()->jobMode; 
  std::string * jm_p = new std::string(jm);
  MessageLoggerQ::MLqMOD( jm_p );                               // change log 9
  
  MessageLoggerQ::MLqCFG( new ParameterSet(iPS) );              // change log 9

  iRegistry.watchPostBeginJob(this,&MessageLogger::postBeginJob);
  iRegistry.watchPostEndJob(this,&MessageLogger::postEndJob);
  iRegistry.watchJobFailure(this,&MessageLogger::jobFailure);   // change log 14

  iRegistry.watchPreModuleConstruction(this,&MessageLogger::preModuleConstruction);
  iRegistry.watchPostModuleConstruction(this,&MessageLogger::postModuleConstruction);
                                                                // change log 3

  iRegistry.watchPreSourceConstruction(this,&MessageLogger::preSourceConstruction);
  iRegistry.watchPostSourceConstruction(this,&MessageLogger::postSourceConstruction);
                                                                // change log 3

  iRegistry.watchPreModule(this,&MessageLogger::preModule);
  iRegistry.watchPostModule(this,&MessageLogger::postModule);

  iRegistry.watchPreSource(this,&MessageLogger::preSource);
  iRegistry.watchPostSource(this,&MessageLogger::postSource);
                                                        // change log 14:
  iRegistry.watchPreSourceRun(this,&MessageLogger::preSource);
  iRegistry.watchPostSourceRun(this,&MessageLogger::postSource);
  iRegistry.watchPreSourceLumi(this,&MessageLogger::preSource);
  iRegistry.watchPostSourceLumi(this,&MessageLogger::postSource);
  iRegistry.watchPreOpenFile(this,&MessageLogger::preFile);
  iRegistry.watchPostOpenFile(this,&MessageLogger::postFile);
  iRegistry.watchPreCloseFile(this,&MessageLogger::preFileClose);
  iRegistry.watchPostCloseFile(this,&MessageLogger::postFile);
  
                                                        // change log 13:
                                                        // change log 15
  iRegistry.watchPreModuleBeginJob(this,&MessageLogger::preModuleBeginJob);
  iRegistry.watchPostModuleBeginJob(this,&MessageLogger::postModuleBeginJob);
  iRegistry.watchPreModuleEndJob(this,&MessageLogger::preModuleEndJob);
  iRegistry.watchPostModuleEndJob(this,&MessageLogger::postModuleEndJob);
  iRegistry.watchPreModuleBeginRun(this,&MessageLogger::preModuleBeginRun);
  iRegistry.watchPostModuleBeginRun(this,&MessageLogger::postModuleBeginRun);
  iRegistry.watchPreModuleEndRun(this,&MessageLogger::preModuleEndRun);
  iRegistry.watchPostModuleEndRun(this,&MessageLogger::postModuleEndRun);
  iRegistry.watchPreModuleBeginLumi(this,&MessageLogger::preModuleBeginLumi);
  iRegistry.watchPostModuleBeginLumi(this,&MessageLogger::postModuleBeginLumi);
  iRegistry.watchPreModuleEndLumi(this,&MessageLogger::preModuleEndLumi);
  iRegistry.watchPostModuleEndLumi(this,&MessageLogger::postModuleEndLumi);

  iRegistry.watchPreProcessEvent(this,&MessageLogger::preEventProcessing);
  iRegistry.watchPostProcessEvent(this,&MessageLogger::postEventProcessing);
                                                        // change log 14:
  iRegistry.watchPreBeginRun(this,&MessageLogger::preBeginRun);
  iRegistry.watchPostBeginRun(this,&MessageLogger::postBeginRun);
  iRegistry.watchPreEndRun(this,&MessageLogger::preEndRun); // change log 15
  iRegistry.watchPostEndRun(this,&MessageLogger::postEndRun);
  iRegistry.watchPreBeginLumi(this,&MessageLogger::preBeginLumi);
  iRegistry.watchPostBeginLumi(this,&MessageLogger::postBeginLumi);
  iRegistry.watchPreEndLumi(this,&MessageLogger::preEndLumi);
  iRegistry.watchPostEndLumi(this,&MessageLogger::postEndLumi);

  iRegistry.watchPrePathBeginRun(this,&MessageLogger::prePathBeginRun);
  iRegistry.watchPostPathBeginRun(this,&MessageLogger::postPathBeginRun);
  iRegistry.watchPrePathEndRun(this,&MessageLogger::prePathEndRun);
  iRegistry.watchPostPathEndRun(this,&MessageLogger::postPathEndRun);
  iRegistry.watchPrePathBeginLumi(this,&MessageLogger::prePathBeginLumi);
  iRegistry.watchPostPathBeginLumi(this,&MessageLogger::postPathBeginLumi);
  iRegistry.watchPrePathEndLumi(this,&MessageLogger::prePathEndLumi);
  iRegistry.watchPostPathEndLumi(this,&MessageLogger::postPathEndLumi);
  iRegistry.watchPreProcessPath(this,&MessageLogger::preProcessPath);
  iRegistry.watchPostProcessPath(this,&MessageLogger::postProcessPath);

} // ctor

Member Function Documentation

static bool edm::service::MessageLogger::anyDebugEnabled ( ) [inline, static]

Definition at line 113 of file MessageLogger.h.

References anyDebugEnabled_.

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

Definition at line 110 of file MessageLogger.h.

References debugEnabled_.

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

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

{
  MessageDrop* messageDrop = MessageDrop::instance();
  messageDrop->setSinglet( state );                     // Change Log 17        
   if (!anyDebugEnabled_) {
    messageDrop->debugEnabled = false;
  } else if (everyDebugEnabled_) {
    messageDrop->debugEnabled = true;
  } else {
    messageDrop->debugEnabled = 
                debugEnabledModules_.count(state);      // change log 8
  }
  std::map<const std::string,ELseverityLevel>::const_iterator it =
       suppression_levels_.find(state);         // change log 8
  if ( it != suppression_levels_.end() ) {
    messageDrop->debugEnabled  = messageDrop->debugEnabled
                                           && (it->second < ELseverityLevel::ELsev_success );
    messageDrop->infoEnabled    = (it->second < ELseverityLevel::ELsev_info );
    messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning );
    messageDrop->errorEnabled   = (it->second < ELseverityLevel::ELsev_error );
  } else {
    messageDrop->infoEnabled    = true;
    messageDrop->warningEnabled = true;
    messageDrop->errorEnabled   = true;
  }
}
void MessageLogger::establishModule ( const ModuleDescription desc,
const char *  whichPhase 
) [private]

Definition at line 285 of file MessageLogger.cc.

References anyDebugEnabled_, edm::MessageDrop::debugEnabled, debugEnabledModules_, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, edm::MessageDrop::errorEnabled, everyDebugEnabled_, edm::MessageDrop::infoEnabled, instance, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, edm::MessageDrop::setModuleWithPhase(), suppression_levels_, and edm::MessageDrop::warningEnabled.

Referenced by preModule(), preModuleBeginJob(), preModuleBeginLumi(), preModuleBeginRun(), preModuleEndJob(), preModuleEndLumi(), and preModuleEndRun().

{
  MessageDrop* messageDrop = MessageDrop::instance();
  nonModule_debugEnabled   = messageDrop->debugEnabled;
  nonModule_infoEnabled    = messageDrop->infoEnabled;
  nonModule_warningEnabled = messageDrop->warningEnabled;
  nonModule_errorEnabled   = messageDrop->errorEnabled;         // change log 20

  // std::cerr << "establishModule( " << desc.moduleName() << ")\n";
  // Change Log 17
  messageDrop->setModuleWithPhase( desc.moduleName(), desc.moduleLabel(), 
                                &desc, whichPhase );
  // Removed caching per change 17 - caching is now done in MessageDrop.cc
  // in theContext() method, and only happens if a message is actually issued.
  
  if (!anyDebugEnabled_) {
    messageDrop->debugEnabled = false;
  } else if (everyDebugEnabled_) {
    messageDrop->debugEnabled = true;
  } else {
    messageDrop->debugEnabled = 
                        debugEnabledModules_.count(desc.moduleLabel());
  }

  std::map<const std::string,ELseverityLevel>::const_iterator it =
       suppression_levels_.find(desc.moduleLabel());
  if ( it != suppression_levels_.end() ) {
    messageDrop->debugEnabled  = messageDrop->debugEnabled 
                                           && (it->second < ELseverityLevel::ELsev_success );
    messageDrop->infoEnabled    = (it->second < ELseverityLevel::ELsev_info );
    messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning );
    messageDrop->errorEnabled   = (it->second < ELseverityLevel::ELsev_error );
  } else {
    messageDrop->infoEnabled    = true;
    messageDrop->warningEnabled = true;
    messageDrop->errorEnabled   = true;
  }
} // establishModule
void MessageLogger::establishModuleCtor ( const ModuleDescription desc,
const char *  whichPhase 
) [private]

Definition at line 326 of file MessageLogger.cc.

References anyDebugEnabled_, edm::MessageDrop::debugEnabled, debugEnabledModules_, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, edm::MessageDrop::errorEnabled, everyDebugEnabled_, edm::MessageDrop::infoEnabled, instance, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, edm::MessageDrop::setModuleWithPhase(), edm::MessageDrop::snapshot(), suppression_levels_, and edm::MessageDrop::warningEnabled.

Referenced by preModuleConstruction(), and preSourceConstruction().

{
  MessageDrop* messageDrop = MessageDrop::instance();
  nonModule_debugEnabled   = messageDrop->debugEnabled;
  nonModule_infoEnabled    = messageDrop->infoEnabled;
  nonModule_warningEnabled = messageDrop->warningEnabled;
  nonModule_errorEnabled   = messageDrop->errorEnabled;         // change log 20

  // std::cerr << "establishModuleCtor( " << desc.moduleName() << ")\n";
  // Change Log 17
  messageDrop->setModuleWithPhase( desc.moduleName(), desc.moduleLabel(), 
                                0, whichPhase );
  // Cannot cache the value to improve performance because addresses are 
  // not yet permanent - see change log 16.  So did not provide desc ptr.

  if (!anyDebugEnabled_) {
    messageDrop->debugEnabled = false;
  } else if (everyDebugEnabled_) {
    messageDrop->debugEnabled = true;
  } else {
    messageDrop->debugEnabled = 
                        debugEnabledModules_.count(desc.moduleLabel());
  }

  std::map<const std::string,ELseverityLevel>::const_iterator it =
       suppression_levels_.find(desc.moduleLabel());
  if ( it != suppression_levels_.end() ) {
    messageDrop->debugEnabled  = messageDrop->debugEnabled 
                                           && (it->second < ELseverityLevel::ELsev_success );
    messageDrop->infoEnabled    = (it->second < ELseverityLevel::ELsev_info );
    messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning );
    messageDrop->errorEnabled   = (it->second < ELseverityLevel::ELsev_error );
  } else {
    messageDrop->infoEnabled    = true;
    messageDrop->warningEnabled = true;
    messageDrop->errorEnabled   = true;
  }
  messageDrop->snapshot();                              // Change Log 18 
} // establishModuleCtor
void edm::service::MessageLogger::fillErrorObj ( edm::ErrorObj obj) const
void MessageLogger::jobFailure ( )

Definition at line 686 of file MessageLogger.cc.

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

Referenced by MessageLogger().

{
  MessageDrop* messageDrop = MessageDrop::instance();
  messageDrop->moduleName = "jobFailure";
  SummarizeInJobReport();     // Put summary info into Job Rep  // change log 10
  MessageLoggerQ::MLqSUM ( ); // trigger summary info.          // change log 9
}
void MessageLogger::postBeginJob ( )

Definition at line 515 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{
  MessageDrop::instance()->runEvent = "BeforeEvents";  
  MessageDrop::instance()->setSinglet("AfterBeginJob");     // Change Log 17    
}
void MessageLogger::postBeginLumi ( const edm::LuminosityBlock ,
EventSetup const &   
)

Definition at line 657 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{ 
  edm::MessageDrop::instance()->runEvent = "PostBeginLumi"; 
  edm::MessageDrop::instance()->setSinglet("PostBeginLumi");    // changelog 17
}
void MessageLogger::postBeginRun ( const edm::Run ,
EventSetup const &   
)

Definition at line 566 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{ 
  edm::MessageDrop::instance()->runEvent = "PostBeginRun"; 
  edm::MessageDrop::instance()->setSinglet("PostBeginRun");     // changelog 17
  // Note - module name had not been set here
}
void MessageLogger::postEndJob ( )

Definition at line 679 of file MessageLogger.cc.

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

Referenced by MessageLogger().

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

Definition at line 672 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{ 
  edm::MessageDrop::instance()->runEvent = "PostEndLumi"; 
  edm::MessageDrop::instance()->setSinglet("PostEndLumi");      // changelog 17
}
void MessageLogger::postEndRun ( const edm::Run ,
EventSetup const &   
)

Definition at line 641 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{ 
  edm::MessageDrop::instance()->runEvent = "PostEndRun"; 
  edm::MessageDrop::instance()->setSinglet("PostEndRun");       // changelog 17
}
void MessageLogger::postEventProcessing ( Event const &  ,
EventSetup const &   
)

Definition at line 552 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{
  edm::MessageDrop::instance()->runEvent = "PostProcessEvent";  
}
void MessageLogger::postFile ( )

Definition at line 533 of file MessageLogger.cc.

References unEstablish().

Referenced by MessageLogger().

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

Definition at line 483 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

{ unEstablishModule (iDescription, "PostModule"); }
void MessageLogger::postModuleBeginJob ( ModuleDescription const &  iDescription)

Definition at line 442 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

{ unEstablishModule (iDescription, "AfterModBeginJob"); }
void MessageLogger::postModuleBeginLumi ( ModuleDescription const &  iDescription)

Definition at line 475 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

{ unEstablishModule (iDescription, "AfterModBeginLumi"); }
void MessageLogger::postModuleBeginRun ( ModuleDescription const &  iDescription)

Definition at line 467 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

{ unEstablishModule (iDescription, "AfterModBeginRun"); }
void MessageLogger::postModuleConstruction ( ModuleDescription const &  iDescription)

Definition at line 434 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

{ unEstablishModule (iDescription, "AfterModConstruction"); }
void MessageLogger::postModuleEndJob ( ModuleDescription const &  iDescription)

Definition at line 507 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

{ unEstablishModule (iDescription, "AfterModEndJob"); }
void MessageLogger::postModuleEndLumi ( ModuleDescription const &  iDescription)

Definition at line 491 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

{ unEstablishModule (iDescription, "AfterModEndLumi"); }
void MessageLogger::postModuleEndRun ( ModuleDescription const &  iDescription)

Definition at line 499 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

{ unEstablishModule (iDescription, "AfterModEndRun"); }
void MessageLogger::postPathBeginLumi ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 602 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{ 
  edm::MessageDrop::instance()->setSinglet("PostPathBeginLumi"); // changelog 17
}
void MessageLogger::postPathBeginRun ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 579 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{ 
  edm::MessageDrop::instance()->setSinglet("PostPathBeginRun"); // changelog 17
}
void MessageLogger::postPathEndLumi ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 614 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{ 
  edm::MessageDrop::instance()->setSinglet("PostPathEndLumi"); // changelog 17
}
void MessageLogger::postPathEndRun ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 591 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{ 
  edm::MessageDrop::instance()->setSinglet("PostPathEndRun");   // changelog 17
}
void MessageLogger::postProcessPath ( const std::string &  pathname,
HLTPathStatus const &   
)

Definition at line 626 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{ 
  edm::MessageDrop::instance()->setSinglet("PostProcessPath");  // changelog 17
}
void MessageLogger::postSource ( )

Definition at line 526 of file MessageLogger.cc.

References unEstablish().

Referenced by MessageLogger().

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

Definition at line 459 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

{ unEstablishModule (iDescription, "AfterSourceConstruction"); }
void MessageLogger::preBeginLumi ( const edm::LuminosityBlockID iID,
const edm::Timestamp  
)

Definition at line 648 of file MessageLogger.cc.

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

Referenced by MessageLogger().

{
  std::ostringstream ost;
  ost << "Run: " << iID.run() << " Lumi: " << iID.luminosityBlock();
  edm::MessageDrop::instance()->runEvent = ost.str();  
  edm::MessageDrop::instance()->setSinglet("PreBeginLumi");     // changelog 17
}
void MessageLogger::preBeginRun ( const edm::RunID iID,
const edm::Timestamp  
)

Definition at line 558 of file MessageLogger.cc.

References instance, and edm::RunID::run().

Referenced by MessageLogger().

{
  std::ostringstream ost;
  ost << "Run: " << iID.run();
  edm::MessageDrop::instance()->runEvent = ost.str();  
  edm::MessageDrop::instance()->setSinglet("PreBeginRun");      // changelog 17
}
void MessageLogger::preEndLumi ( const edm::LuminosityBlockID iID,
const edm::Timestamp  
)

Definition at line 664 of file MessageLogger.cc.

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

Referenced by MessageLogger().

{
  std::ostringstream ost;
  ost << "Run: " << iID.run() << " Lumi: " << iID.luminosityBlock();
  edm::MessageDrop::instance()->runEvent = ost.str();  
  edm::MessageDrop::instance()->setSinglet("PreEndLumi");       // changelog 17
}
void MessageLogger::preEndRun ( const edm::RunID iID,
const edm::Timestamp  
)

Definition at line 632 of file MessageLogger.cc.

References instance, and edm::RunID::run().

Referenced by MessageLogger().

{
  std::ostringstream ost;
  ost << "End Run: " << iID.run();
  edm::MessageDrop::instance()->runEvent = ost.str();  
  edm::MessageDrop::instance()->setSinglet("PreEndRun");        // changelog 17
}
void MessageLogger::preEventProcessing ( edm::EventID const &  iID,
edm::Timestamp const &   
)

Definition at line 538 of file MessageLogger.cc.

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

Referenced by MessageLogger().

{
  std::ostringstream ost;
  curr_event_ = iID;
  ost << "Run: " << curr_event_.run() 
      << " Event: " << curr_event_.event();                     // change log 2
  edm::MessageDrop::instance()->runEvent = ost.str();  
  edm::MessageDrop::instance()->setSinglet("PreEventProcessing");// changelog 17
  // Note - module name had not been set here  Similarly in other places where
  // RunEvent carries the new information; we add setSinglet for module name.
}
void MessageLogger::preFile ( )

Definition at line 529 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

{  establish("file_open"); }
void MessageLogger::preFileClose ( std::string const &  ,
bool   
)

Definition at line 531 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

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

Definition at line 479 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

{
  establishModule (desc,"");                                    // ChangeLog 13
}
void MessageLogger::preModuleBeginJob ( ModuleDescription const &  desc)

Definition at line 438 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

{
  establishModule (desc,"@beginJob");                           // ChangeLog 13
}
void MessageLogger::preModuleBeginLumi ( ModuleDescription const &  desc)

Definition at line 471 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

{
  establishModule (desc,"@beginLumi");                          // ChangeLog 13
}
void MessageLogger::preModuleBeginRun ( ModuleDescription const &  desc)

Definition at line 463 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

{
  establishModule (desc,"@beginRun");                           // ChangeLog 13
}
void MessageLogger::preModuleConstruction ( ModuleDescription const &  desc)
void MessageLogger::preModuleEndJob ( ModuleDescription const &  desc)

Definition at line 503 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

{
  establishModule (desc,"@endJob");                             // ChangeLog 13
}
void MessageLogger::preModuleEndLumi ( ModuleDescription const &  desc)

Definition at line 487 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

{
  establishModule (desc,"@endLumi");                            // ChangeLog 13
}
void MessageLogger::preModuleEndRun ( ModuleDescription const &  desc)

Definition at line 495 of file MessageLogger.cc.

References establishModule().

Referenced by MessageLogger().

{
  establishModule (desc,"@endRun");                             // ChangeLog 13
}
void MessageLogger::prePathBeginLumi ( const std::string &  pathname)

Definition at line 597 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{
  edm::MessageDrop::instance()->setPath( "LPath: ", pathname);  // change log 17
}
void MessageLogger::prePathBeginRun ( const std::string &  pathname)

Definition at line 574 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{
  edm::MessageDrop::instance()->setPath( "RPath: ", pathname);  // change log 17
}
void MessageLogger::prePathEndLumi ( const std::string &  pathname)

Definition at line 608 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{
  edm::MessageDrop::instance()->setPath( "LPathEnd: ", pathname);
                                                                // change log 17
}
void MessageLogger::prePathEndRun ( const std::string &  pathname)

Definition at line 585 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{
  edm::MessageDrop::instance()->setPath( "RPathEnd: ", pathname);
                                                                // change log 17
}
void MessageLogger::preProcessPath ( const std::string &  pathname)

Definition at line 620 of file MessageLogger.cc.

References instance.

Referenced by MessageLogger().

{
  edm::MessageDrop::instance()->setPath( "PreProcPath ", pathname);
                                                                // change log 17
}
void MessageLogger::preSource ( )

Definition at line 522 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

{
  establish("source");
}
void MessageLogger::preSourceConstruction ( ModuleDescription const &  desc)
void MessageLogger::SummarizeInJobReport ( ) [static]

Definition at line 700 of file MessageLogger.cc.

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

Referenced by jobFailure(), and postEndJob().

                                    {
  if ( fjrSummaryRequested_ ) { 
    std::map<std::string, double> * smp = new std::map<std::string, double> ();
    MessageLoggerQ::MLqJRS ( smp );
    Service<JobReport> reportSvc;
    reportSvc->reportMessageInfo(*smp);
    delete smp;
  } 
}
void MessageLogger::unEstablish ( const char *  whichPhase) [private]

Definition at line 411 of file MessageLogger.cc.

References instance.

Referenced by postFile(), and postSource().

{
  MessageDrop::instance()->setSinglet( state );         // Change Log 17        
}
void MessageLogger::unEstablishModule ( const ModuleDescription desc,
const char *  whichPhase 
) [private]

Member Data Documentation

bool MessageLogger::anyDebugEnabled_ = false [static, private]

Definition at line 130 of file MessageLogger.h.

Referenced by preEventProcessing().

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 [static, private]

Definition at line 138 of file MessageLogger.h.

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

bool MessageLogger::fjrSummaryRequested_ = false [static, private]

Definition at line 140 of file MessageLogger.h.

Referenced by MessageLogger(), and SummarizeInJobReport().

Definition at line 141 of file MessageLogger.h.

Referenced by preModuleConstruction(), and preSourceConstruction().

Definition at line 142 of file MessageLogger.h.

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

Definition at line 144 of file MessageLogger.h.

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

Definition at line 147 of file MessageLogger.h.

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

Definition at line 145 of file MessageLogger.h.

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

Definition at line 146 of file MessageLogger.h.

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

Definition at line 133 of file MessageLogger.h.

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