CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes
edm::MessageDrop Struct Reference

#include <MessageDrop.h>

Public Member Functions

void clear ()
 
 MessageDrop (MessageDrop const &)=delete
 
std::string moduleContext ()
 
MessageDropoperator= (MessageDrop const &)=delete
 
void setModuleWithPhase (std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
 
void setPath (const char *type, std::string const &pathname)
 
void setSinglet (const char *sing)
 
 ~MessageDrop ()
 

Static Public Member Functions

static MessageDropinstance ()
 

Public Attributes

bool debugEnabled
 
bool errorEnabled
 
bool fwkInfoEnabled
 
bool infoEnabled
 
std::string_view runEvent
 
unsigned int streamID
 
bool warningEnabled
 

Static Public Attributes

static bool debugAlwaysSuppressed = false
 
static bool fwkInfoAlwaysSuppressed = false
 
static bool infoAlwaysSuppressed = false
 
static std::string jobMode {}
 
static unsigned char messageLoggerScribeIsRunning = 0
 
static bool warningAlwaysSuppressed = false
 

Private Member Functions

 MessageDrop ()
 

Private Attributes

messagedrop::StringProducer const * moduleNameProducer
 
edm::propagate_const< messagedrop::StringProducerPath * > spPath
 
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
 
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
 

Detailed Description

Definition at line 45 of file MessageDrop.h.

Constructor & Destructor Documentation

◆ MessageDrop() [1/2]

MessageDrop::MessageDrop ( )
private

Definition at line 136 of file MessageDrop.cc.

137  : runEvent("pre-events"),
139  debugEnabled(true),
140  infoEnabled(true),
141  fwkInfoEnabled(true),
142  warningEnabled(true),
143  errorEnabled(true),
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:80
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
Definition: MessageDrop.h:77
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
Definition: MessageDrop.h:79
unsigned int streamID
Definition: MessageDrop.h:62
edm::propagate_const< messagedrop::StringProducerPath * > spPath
Definition: MessageDrop.h:78
std::string_view runEvent
Definition: MessageDrop.h:61

◆ MessageDrop() [2/2]

edm::MessageDrop::MessageDrop ( MessageDrop const &  )
delete

◆ ~MessageDrop()

MessageDrop::~MessageDrop ( )

Definition at line 149 of file MessageDrop.cc.

References spPath, spSinglet, and spWithPhase.

149  {
150  delete spSinglet.get();
151  delete spPath.get();
152  delete spWithPhase.get();
153  }
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
Definition: MessageDrop.h:77
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
Definition: MessageDrop.h:79
edm::propagate_const< messagedrop::StringProducerPath * > spPath
Definition: MessageDrop.h:78

Member Function Documentation

◆ clear()

void MessageDrop::clear ( void  )

Definition at line 174 of file MessageDrop.cc.

References setSinglet().

Referenced by edm::clearMessageLog().

174 { setSinglet(""); }
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168

◆ instance()

MessageDrop * MessageDrop::instance ( )
static

Definition at line 33 of file MessageDrop.cc.

Referenced by SiPixelRawToClusterCUDAT< TrackerTraits >::acquire(), edm::clearMessageLog(), edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::FlushMessageLog(), edm::isDebugEnabled(), edm::isErrorEnabled(), edm::isFwkInfoEnabled(), edm::isInfoEnabled(), edm::isMessageProcessingSetUp(), edm::isWarningEnabled(), edm::service::MessageLogger::jobFailure(), edm::service::MessageLogger::MessageLogger(), edm::MessageSender::ErrorObjDeleter::operator()(), edm::service::MessageLogger::postAccessInputProcessBlock(), edm::service::MessageLogger::postBeginJob(), edm::service::MessageLogger::postBeginProcessBlock(), edm::service::MessageLogger::postEndProcessBlock(), edm::service::MessageLogger::postESModule(), edm::service::MessageLogger::postEvent(), edm::service::MessageLogger::postGlobalBeginLumi(), edm::service::MessageLogger::postGlobalBeginRun(), edm::service::MessageLogger::postGlobalEndLumi(), edm::service::MessageLogger::postGlobalEndRun(), edm::service::MessageLogger::postPathEvent(), edm::service::MessageLogger::postSourceEvent(), edm::service::MessageLogger::postStreamBeginLumi(), edm::service::MessageLogger::postStreamBeginRun(), edm::service::MessageLogger::postStreamEndLumi(), edm::service::MessageLogger::postStreamEndRun(), edm::service::MessageLogger::preAccessInputProcessBlock(), edm::service::MessageLogger::preBeginProcessBlock(), edm::service::MessageLogger::preEndJob(), edm::service::MessageLogger::preEndProcessBlock(), edm::service::MessageLogger::preESModule(), edm::service::MessageLogger::preEvent(), edm::service::MessageLogger::preGlobalBeginLumi(), edm::service::MessageLogger::preGlobalBeginRun(), edm::service::MessageLogger::preGlobalEndLumi(), edm::service::MessageLogger::preGlobalEndRun(), edm::service::MessageLogger::prePathEvent(), edm::service::MessageLogger::preSourceEvent(), edm::service::MessageLogger::preStreamBeginLumi(), edm::service::MessageLogger::preStreamBeginRun(), edm::service::MessageLogger::preStreamEndLumi(), edm::service::MessageLogger::preStreamEndRun(), RPCUnpackingModule::produce(), omtf::OmtfUnpacker::produce(), RPCRecordFormatter::recordUnpack(), run_app(), edm::service::MessageLogger::setThreadContext(), edm::service::SingleThreadMSPresence::SingleThreadMSPresence(), edm::level::Error::suppress(), edm::level::Warning::suppress(), edm::level::FwkInfo::suppress(), edm::level::Info::suppress(), edm::edmmltest::WarningThatSuppressesLikeLogInfo::suppress(), edm::service::MessageLogger::unEstablish(), and edm::service::MessageLogger::unEstablishModule().

33  {
34  thread_local static MessageDrop s_drop{};
35  return &s_drop;
36 }

◆ moduleContext()

std::string MessageDrop::moduleContext ( )

Definition at line 173 of file MessageDrop.cc.

References moduleNameProducer, and edm::messagedrop::StringProducer::theContext().

173 { return moduleNameProducer->theContext(); }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:80
virtual std::string theContext() const =0

◆ operator=()

MessageDrop& edm::MessageDrop::operator= ( MessageDrop const &  )
delete

◆ setModuleWithPhase()

void MessageDrop::setModuleWithPhase ( std::string const &  name,
std::string const &  label,
unsigned int  moduleID,
const char *  phase 
)

Definition at line 155 of file MessageDrop.cc.

References label, moduleNameProducer, Skims_PA_cff::name, and spWithPhase.

Referenced by edm::service::MessageLogger::establishModule(), and edm::service::MessageLogger::preESModule().

158  {
159  spWithPhase->set(name, label, moduleID, phase);
161  }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:80
char const * label
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
Definition: MessageDrop.h:77

◆ setPath()

void MessageDrop::setPath ( const char *  type,
std::string const &  pathname 
)

Definition at line 163 of file MessageDrop.cc.

References moduleNameProducer, BTVHLTOfflineSource_cfi::pathname, and spPath.

163  {
164  spPath->set(type, pathname);
166  }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:80
edm::propagate_const< messagedrop::StringProducerPath * > spPath
Definition: MessageDrop.h:78

◆ setSinglet()

void MessageDrop::setSinglet ( const char *  sing)

Definition at line 168 of file MessageDrop.cc.

References moduleNameProducer, and spSinglet.

Referenced by clear(), edm::service::MessageLogger::establish(), edm::service::MessageLogger::jobFailure(), edm::service::MessageLogger::postAccessInputProcessBlock(), edm::service::MessageLogger::postBeginJob(), edm::service::MessageLogger::postBeginProcessBlock(), edm::service::MessageLogger::postEndProcessBlock(), edm::service::MessageLogger::postESModule(), edm::service::MessageLogger::postGlobalBeginLumi(), edm::service::MessageLogger::postGlobalBeginRun(), edm::service::MessageLogger::postGlobalEndLumi(), edm::service::MessageLogger::postGlobalEndRun(), edm::service::MessageLogger::postPathEvent(), edm::service::MessageLogger::postStreamBeginLumi(), edm::service::MessageLogger::postStreamBeginRun(), edm::service::MessageLogger::postStreamEndLumi(), edm::service::MessageLogger::postStreamEndRun(), edm::service::MessageLogger::preAccessInputProcessBlock(), edm::service::MessageLogger::preBeginProcessBlock(), edm::service::MessageLogger::preEndJob(), edm::service::MessageLogger::preEndProcessBlock(), edm::service::MessageLogger::preEvent(), edm::service::MessageLogger::preGlobalBeginLumi(), edm::service::MessageLogger::preGlobalBeginRun(), edm::service::MessageLogger::preGlobalEndLumi(), edm::service::MessageLogger::preGlobalEndRun(), edm::service::MessageLogger::preStreamBeginLumi(), edm::service::MessageLogger::preStreamBeginRun(), edm::service::MessageLogger::preStreamEndLumi(), edm::service::MessageLogger::preStreamEndRun(), edm::service::MessageLogger::setThreadContext(), edm::service::MessageLogger::unEstablish(), and edm::service::MessageLogger::unEstablishModule().

168  {
169  spSinglet->set(sing);
171  }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:80
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
Definition: MessageDrop.h:79

Member Data Documentation

◆ debugAlwaysSuppressed

bool MessageDrop::debugAlwaysSuppressed = false
static

◆ debugEnabled

bool edm::MessageDrop::debugEnabled

◆ errorEnabled

bool edm::MessageDrop::errorEnabled

◆ fwkInfoAlwaysSuppressed

bool MessageDrop::fwkInfoAlwaysSuppressed = false
static

◆ fwkInfoEnabled

bool edm::MessageDrop::fwkInfoEnabled

◆ infoAlwaysSuppressed

bool MessageDrop::infoAlwaysSuppressed = false
static

◆ infoEnabled

bool edm::MessageDrop::infoEnabled

◆ jobMode

std::string MessageDrop::jobMode {}
static

Definition at line 69 of file MessageDrop.h.

Referenced by edm::service::MessageLogger::MessageLogger().

◆ messageLoggerScribeIsRunning

unsigned char MessageDrop::messageLoggerScribeIsRunning = 0
static

◆ moduleNameProducer

messagedrop::StringProducer const* edm::MessageDrop::moduleNameProducer
private

Definition at line 80 of file MessageDrop.h.

Referenced by moduleContext(), setModuleWithPhase(), setPath(), and setSinglet().

◆ runEvent

std::string_view edm::MessageDrop::runEvent

Definition at line 61 of file MessageDrop.h.

Referenced by edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::postAccessInputProcessBlock(), edm::service::MessageLogger::postBeginJob(), edm::service::MessageLogger::postBeginProcessBlock(), edm::service::MessageLogger::postEndProcessBlock(), edm::service::MessageLogger::postEvent(), edm::service::MessageLogger::postGlobalBeginLumi(), edm::service::MessageLogger::postGlobalBeginRun(), edm::service::MessageLogger::postGlobalEndLumi(), edm::service::MessageLogger::postGlobalEndRun(), edm::service::MessageLogger::postSourceEvent(), edm::service::MessageLogger::postStreamBeginLumi(), edm::service::MessageLogger::postStreamBeginRun(), edm::service::MessageLogger::postStreamEndLumi(), edm::service::MessageLogger::postStreamEndRun(), edm::service::MessageLogger::preAccessInputProcessBlock(), edm::service::MessageLogger::preBeginProcessBlock(), edm::service::MessageLogger::preEndJob(), edm::service::MessageLogger::preEndProcessBlock(), edm::service::MessageLogger::preEvent(), edm::service::MessageLogger::preGlobalBeginLumi(), edm::service::MessageLogger::preGlobalBeginRun(), edm::service::MessageLogger::preGlobalEndLumi(), edm::service::MessageLogger::preGlobalEndRun(), edm::service::MessageLogger::preSourceEvent(), edm::service::MessageLogger::preStreamBeginLumi(), edm::service::MessageLogger::preStreamBeginRun(), edm::service::MessageLogger::preStreamEndLumi(), edm::service::MessageLogger::preStreamEndRun(), edm::service::MessageLogger::setThreadContext(), and edm::service::MessageLogger::unEstablishModule().

◆ spPath

edm::propagate_const<messagedrop::StringProducerPath*> edm::MessageDrop::spPath
private

Definition at line 78 of file MessageDrop.h.

Referenced by setPath(), and ~MessageDrop().

◆ spSinglet

edm::propagate_const<messagedrop::StringProducerSinglet*> edm::MessageDrop::spSinglet
private

Definition at line 79 of file MessageDrop.h.

Referenced by setSinglet(), and ~MessageDrop().

◆ spWithPhase

edm::propagate_const<messagedrop::StringProducerWithPhase*> edm::MessageDrop::spWithPhase
private

Definition at line 77 of file MessageDrop.h.

Referenced by setModuleWithPhase(), and ~MessageDrop().

◆ streamID

unsigned int edm::MessageDrop::streamID

◆ warningAlwaysSuppressed

bool MessageDrop::warningAlwaysSuppressed = false
static

◆ warningEnabled

bool edm::MessageDrop::warningEnabled