18 bool MessageDrop::debugAlwaysSuppressed{
false};
20 bool MessageDrop::infoAlwaysSuppressed{
false};
22 bool MessageDrop::warningAlwaysSuppressed{
false};
24 string MessageDrop::jobMode{};
26 unsigned char MessageDrop::messageLoggerScribeIsRunning = 0;
39 auto nameLableIter = idLabelMap_.find(moduleID_);
40 if (nameLableIter != idLabelMap_.end()) {
41 cache_.assign(nameLableIter->second);
42 cache_.append(phase_);
48 cache_.append(label_);
49 idLabelMap_[moduleID_] = cache_;
50 if (!phase_.empty()) {
51 cache_.append(phase_);
66 phase_ =
"@"s + phase;
71 string phase_{
"@Early"s};
79 mutable string cache_{};
91 cache_.assign(phase_);
99 set(
string const& phase,
string const& path)
107 string phase_{
"(NoPath)"};
124 set(
string const& singlet)
130 string singlet_{
"Early"};
133 MessageDrop::~MessageDrop() {}
135 MessageDrop::MessageDrop()
136 : messageStreamID(numeric_limits<unsigned int>::
max())
140 , moduleNameProducer_(spSinglet_.
get())
constexpr std::tuple_element_t< I, art::AssnsNode< L, R, D > > & get(art::AssnsNode< L, R, D > &t) noexcept
cet::propagate_const< std::unique_ptr< StringProducerWithPhase > > spWithPhase_
virtual string theContext() const override
map< module_id_t, string > id_label_map_t
std::string moduleContext() const
cet::propagate_const< std::unique_ptr< StringProducerSinglet > > spSinglet_
void setPath(std::string const &path, std::string const &phase)
cet::exempt_ptr< StringProducer > moduleNameProducer_
virtual string theContext() const override
void setModuleWithPhase(std::string const &name, std::string const &label, module_id_t moduleID, std::string const &phase)
void setSinglet(std::string const &singlet)
virtual string theContext() const override
static MessageDrop * instance()
cet::propagate_const< std::unique_ptr< StringProducerPath > > spPath_