Go to the documentation of this file.
95 int lev =
msg.xid().severity.getLevel();
103 std::cerr <<
"\nERROR LOGGED WITHOUT DESTINATION!\n";
104 std::cerr <<
"Attaching destination \"cerr\" to ELadministrator by default\n" << std::endl;
109 msg.setReactedTo(
true);
140 while (++
k !=
to.getLevel())
181 sink->threshold = sev;
187 sink->limits.setLimit(
id,
limit);
193 sink->limits.setInterval(sev,
interval);
199 sink->limits.setInterval(
id,
interval);
205 sink->limits.setLimit(sev,
limit);
211 sink->limits.setTimespan(
id,
seconds);
217 sink->limits.setTimespan(sev,
seconds);
234 #ifdef ELadministratorCONSTRUCTOR_TRACE
235 std::cerr <<
"ELadminstrator constructor\n";
246 #ifdef ELadministratorCONSTRUCTOR_TRACE
247 std::cerr <<
"ELadministrator Destructor\n";
void resetSeverityCount()
constexpr const ELseverityLevel ELhighestSeverity
int severityCounts(int lev) const
void setThresholds(const ELseverityLevel &sev)
ELseverityLevel highSeverity_
int severityCount(const ELseverityLevel &sev) const
void setLimits(const std::string &id, int limit)
void setIntervals(const std::string &id, int interval)
ELseverityLevel checkSeverity()
void setTimespans(const std::string &id, int seconds)
constexpr int getLevel() const noexcept
std::list< edm::propagate_const< std::shared_ptr< ELdestination > > > sinks_
void log(edm::ErrorObj &msg)
const ELseverityLevel & highSeverity() const
int severityCounts_[ELseverityLevel::nLevels]
std::shared_ptr< ELdestination > attach(std::shared_ptr< ELdestination > sink)
constexpr const ELseverityLevel ELzeroSeverity