109 std::cerr <<
"\nERROR LOGGED WITHOUT DESTINATION!\n";
110 std::cerr <<
"Attaching destination \"cerr\" to ELadministrator by default\n"
114 std::list<boost::shared_ptr<ELdestination> >::iterator d;
116 if ( (*d)->log( msg ) )
130 boost::shared_ptr<ELdestination>
dest(sink.
clone());
138 boost::shared_ptr<ELdestination>
dest(sink.
clone());
228 std::list<boost::shared_ptr<ELdestination> >::iterator d;
230 (*d)->threshold = sev;
237 std::list<boost::shared_ptr<ELdestination> >::iterator d;
239 (*d)->limits.setLimit(
id, limit );
247 std::list<boost::shared_ptr<ELdestination> >::iterator d;
248 for ( d = sinks().
begin(); d != sinks().end(); ++d )
249 (*d)->limits.setInterval( sev, interval );
255 std::list<boost::shared_ptr<ELdestination> >::iterator d;
257 (*d)->limits.setInterval(
id, interval );
264 std::list<boost::shared_ptr<ELdestination> >::iterator d;
266 (*d)->limits.setLimit( sev, limit );
273 std::list<boost::shared_ptr<ELdestination> >::iterator d;
275 (*d)->limits.setTimespan(
id, seconds );
282 std::list<boost::shared_ptr<ELdestination> >::iterator d;
284 (*d)->limits.setTimespan( sev, seconds );
291 std::list<boost::shared_ptr<ELdestination> >::iterator d;
299 std::list<boost::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)
std::list< boost::shared_ptr< ELdestination > > & sinks()
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)
virtual void setReactedTo(bool r)
const ELextendedID & xid() const
ELslProxy< ELzeroSeverityGen > const ELzeroSeverity
std::map< ELstring, boost::shared_ptr< ELdestination > > attachedDestinations_
ELseverityLevel highSeverity_
void setTimespans(const ELstring &id, int seconds)
std::list< boost::shared_ptr< ELdestination > > sinks_
virtual ELdestination * clone() const =0
int severityCounts(int lev) const
int severityCount(const ELseverityLevel &sev) const
ELdestControl attach(const ELdestination &sink)
ELseverityLevel checkSeverity()