109 std::cerr <<
"\nERROR LOGGED WITHOUT DESTINATION!\n";
110 std::cerr <<
"Attaching destination \"cerr\" to ELadministrator by default\n"
114 std::list<std::shared_ptr<ELdestination> >::iterator
d;
116 if ( (*d)->log( msg ) )
130 std::shared_ptr<ELdestination>
dest(sink.
clone());
138 std::shared_ptr<ELdestination>
dest(sink.
clone());
228 std::list<std::shared_ptr<ELdestination> >::iterator
d;
230 (*d)->threshold = sev;
237 std::list<std::shared_ptr<ELdestination> >::iterator
d;
239 (*d)->limits.setLimit(
id, limit );
247 std::list<std::shared_ptr<ELdestination> >::iterator
d;
248 for ( d = sinks().
begin(); d != sinks().end(); ++
d )
249 (*d)->limits.setInterval( sev, interval );
255 std::list<std::shared_ptr<ELdestination> >::iterator
d;
257 (*d)->limits.setInterval(
id, interval );
264 std::list<std::shared_ptr<ELdestination> >::iterator
d;
266 (*d)->limits.setLimit( sev, limit );
273 std::list<std::shared_ptr<ELdestination> >::iterator
d;
275 (*d)->limits.setTimespan(
id, seconds );
282 std::list<std::shared_ptr<ELdestination> >::iterator
d;
284 (*d)->limits.setTimespan( sev, seconds );
291 std::list<std::shared_ptr<ELdestination> >::iterator
d;
299 std::list<std::shared_ptr<ELdestination> >::iterator
d;
311 #ifdef ELadministratorCONSTRUCTOR_TRACE
312 std::cerr <<
"ELadminstrator constructor\n";
325 #ifdef ELadministratorCONSTRUCTOR_TRACE
326 std::cerr <<
"ELadministrator Destructor\n";
const ELseverityLevel & highSeverity() const
void log(edm::ErrorObj &msg)
int severityCounts_[ELseverityLevel::nLevels]
void setThresholds(const ELseverityLevel &sev)
ELslProxy< ELhighestSeverityGen > const ELhighestSeverity
void setIntervals(const ELstring &id, int interval)
void resetSeverityCount()
void setLimits(const ELstring &id, int limit)
std::map< ELstring, std::shared_ptr< ELdestination > > attachedDestinations_
virtual void setReactedTo(bool r)
const ELextendedID & xid() const
ELslProxy< ELzeroSeverityGen > const ELzeroSeverity
ELseverityLevel highSeverity_
void setTimespans(const ELstring &id, int seconds)
virtual ELdestination * clone() const =0
int severityCounts(int lev) const
int severityCount(const ELseverityLevel &sev) const
std::list< std::shared_ptr< ELdestination > > sinks_
std::list< std::shared_ptr< ELdestination > > & sinks()
ELdestControl attach(const ELdestination &sink)
ELseverityLevel checkSeverity()