#include <ELadministrator.h>
Public Member Functions | |
std::shared_ptr< ELdestination > | attach (std::shared_ptr< ELdestination > sink) |
ELseverityLevel | checkSeverity () |
void | finish () |
void | log (edm::ErrorObj &msg) |
void | resetSeverityCount (const ELseverityLevel &sev) |
void | resetSeverityCount (const ELseverityLevel &from, const ELseverityLevel &to) |
void | resetSeverityCount () |
void | setIntervals (const ELstring &id, int interval) |
void | setIntervals (const ELseverityLevel &sev, int interval) |
void | setLimits (const ELstring &id, int limit) |
void | setLimits (const ELseverityLevel &sev, int limit) |
void | setThresholds (const ELseverityLevel &sev) |
void | setTimespans (const ELstring &id, int seconds) |
void | setTimespans (const ELseverityLevel &sev, int seconds) |
int | severityCount (const ELseverityLevel &sev) const |
int | severityCount (const ELseverityLevel &from, const ELseverityLevel &to) const |
void | wipe () |
~ELadministrator () | |
Protected Member Functions | |
const ELseverityLevel & | abortThreshold () const |
ELadministrator () | |
const ELseverityLevel & | exitThreshold () const |
const ELseverityLevel & | highSeverity () const |
int | severityCounts (int lev) const |
Private Attributes | |
std::map< ELstring, edm::propagate_const< std::shared_ptr< ELdestination > > > | attachedDestinations_ |
ELseverityLevel | highSeverity_ |
int | severityCounts_ [ELseverityLevel::nLevels] |
std::list< edm::propagate_const< std::shared_ptr< ELdestination > > > | sinks_ |
Friends | |
class | ELcout |
class | MessageLoggerScribe |
class | ThreadSafeLogMessageLoggerScribe |
Definition at line 75 of file ELadministrator.h.
edm::service::ELadministrator::~ELadministrator | ( | ) |
Definition at line 245 of file ELadministrator.cc.
References MessageLogger_cfi::cerr, and sinks_.
|
protected |
Definition at line 233 of file ELadministrator.cc.
References MessageLogger_cfi::cerr, edm::ELseverityLevel::nLevels, and severityCounts_.
|
protected |
std::shared_ptr< ELdestination > edm::service::ELadministrator::attach | ( | std::shared_ptr< ELdestination > | sink | ) |
Definition at line 118 of file ELadministrator.cc.
References sinks_.
Referenced by log().
ELseverityLevel edm::service::ELadministrator::checkSeverity | ( | ) |
Definition at line 124 of file ELadministrator.cc.
References edm::ELzeroSeverity, and highSeverity_.
|
protected |
void edm::service::ELadministrator::finish | ( | ) |
Definition at line 227 of file ELadministrator.cc.
References sinks_.
Referenced by progressbar.ProgressBar::__next__().
|
protected |
Definition at line 167 of file ELadministrator.cc.
References highSeverity_.
void edm::service::ELadministrator::log | ( | edm::ErrorObj & | msg | ) |
Definition at line 93 of file ELadministrator.cc.
References attach(), MessageLogger_cfi::cerr, edm::ELseverityLevel::getLevel(), highSeverity_, edm::ErrorObj::setReactedTo(), edm::ELextendedID::severity, severityCounts_, sinks_, and edm::ErrorObj::xid().
void edm::service::ELadministrator::resetSeverityCount | ( | const ELseverityLevel & | sev | ) |
Definition at line 147 of file ELadministrator.cc.
References edm::ELseverityLevel::getLevel(), and severityCounts_.
void edm::service::ELadministrator::resetSeverityCount | ( | const ELseverityLevel & | from, |
const ELseverityLevel & | to | ||
) |
Definition at line 152 of file ELadministrator.cc.
References edm::ELseverityLevel::getLevel(), gen::k, and severityCounts_.
void edm::service::ELadministrator::resetSeverityCount | ( | ) |
Definition at line 158 of file ELadministrator.cc.
References edm::ELhighestSeverity, and edm::ELzeroSeverity.
void edm::service::ELadministrator::setIntervals | ( | const ELstring & | id, |
int | interval | ||
) |
Definition at line 197 of file ELadministrator.cc.
References sinks_.
void edm::service::ELadministrator::setIntervals | ( | const ELseverityLevel & | sev, |
int | interval | ||
) |
Definition at line 191 of file ELadministrator.cc.
References sinks_.
void edm::service::ELadministrator::setLimits | ( | const ELstring & | id, |
int | limit | ||
) |
Definition at line 185 of file ELadministrator.cc.
References sinks_.
void edm::service::ELadministrator::setLimits | ( | const ELseverityLevel & | sev, |
int | limit | ||
) |
Definition at line 203 of file ELadministrator.cc.
References sinks_.
void edm::service::ELadministrator::setThresholds | ( | const ELseverityLevel & | sev | ) |
Definition at line 179 of file ELadministrator.cc.
References sinks_.
void edm::service::ELadministrator::setTimespans | ( | const ELstring & | id, |
int | seconds | ||
) |
Definition at line 209 of file ELadministrator.cc.
References sinks_.
void edm::service::ELadministrator::setTimespans | ( | const ELseverityLevel & | sev, |
int | seconds | ||
) |
Definition at line 215 of file ELadministrator.cc.
References sinks_.
int edm::service::ELadministrator::severityCount | ( | const ELseverityLevel & | sev | ) | const |
Definition at line 131 of file ELadministrator.cc.
References edm::ELseverityLevel::getLevel(), and severityCounts_.
int edm::service::ELadministrator::severityCount | ( | const ELseverityLevel & | from, |
const ELseverityLevel & | to | ||
) | const |
Definition at line 136 of file ELadministrator.cc.
References edm::ELseverityLevel::getLevel(), gen::k, and severityCounts_.
|
protected |
Definition at line 169 of file ELadministrator.cc.
References severityCounts_.
void edm::service::ELadministrator::wipe | ( | ) |
Definition at line 221 of file ELadministrator.cc.
References sinks_.
|
friend |
Definition at line 79 of file ELadministrator.h.
|
friend |
Definition at line 77 of file ELadministrator.h.
|
friend |
Definition at line 78 of file ELadministrator.h.
|
private |
Definition at line 134 of file ELadministrator.h.
|
private |
Definition at line 131 of file ELadministrator.h.
Referenced by checkSeverity(), highSeverity(), and log().
|
private |
Definition at line 132 of file ELadministrator.h.
Referenced by ELadministrator(), log(), resetSeverityCount(), severityCount(), and severityCounts().
|
private |
Definition at line 130 of file ELadministrator.h.
Referenced by attach(), finish(), log(), setIntervals(), setLimits(), setThresholds(), setTimespans(), wipe(), and ~ELadministrator().