#include <ELdestination.h>
Public Member Functions | |
virtual ELdestination * | clone () const =0 |
ELdestination () | |
virtual void | finish () |
virtual ELstring | getNewline () const |
virtual bool | log (const edm::ErrorObj &msg) |
virtual void | summarization (const edm::ELstring &title, const edm::ELstring &sumLines) |
virtual | ~ELdestination () |
Protected Member Functions | |
virtual void | changeFile (std::ostream &os) |
virtual void | changeFile (const ELstring &filename) |
virtual void | clearSummary () |
virtual void | excludeModule (ELstring const &moduleName) |
virtual void | filterModule (ELstring const &moduleName) |
virtual void | flush () |
virtual void | ignoreModule (ELstring const &moduleName) |
virtual void | respondToModule (ELstring const &moduleName) |
virtual void | setTableLimit (int n) |
virtual std::map< ELextendedID, StatsCount > | statisticsMap () const |
virtual void | summary (ELstring &s, const ELstring &title="") |
virtual void | summary (ELdestControl &dest, const ELstring &title="") |
virtual void | summary (std::ostream &os, const ELstring &title="") |
virtual void | summary () |
virtual void | summaryForJobReport (std::map< std::string, double > &sm) |
virtual bool | thisShouldBeIgnored (const ELstring &s) const |
virtual void | wipe () |
virtual void | zero () |
Protected Attributes | |
bool | ignoreMostModules |
ELset_string | ignoreThese |
ELstring | indent |
ELlimitsTable | limits |
int | lineLength |
ELstring | newline |
ELstring | preamble |
bool | respondToMostModules |
ELset_string | respondToThese |
ELseverityLevel | threshold |
ELseverityLevel | traceThreshold |
Static Protected Attributes | |
static const int | defaultLineLength = 80 |
Private Member Functions | |
virtual void | attachEpilogue () |
virtual void | attachTime () |
ELdestination (const ELdestination &orig) | |
virtual int | getLineLength () const |
virtual void | includeContext () |
virtual void | includeModule () |
virtual void | includeSerial () |
virtual void | includeSubroutine () |
virtual void | includeText () |
virtual void | includeTime () |
virtual void | noTerminationSummary () |
ELdestination & | operator= (const ELdestination &orig) |
virtual void | separateEpilogue () |
virtual void | separateTime () |
virtual int | setLineLength (int len) |
virtual void | suppressContext () |
virtual void | suppressModule () |
virtual void | suppressSerial () |
virtual void | suppressSubroutine () |
virtual void | suppressText () |
virtual void | suppressTime () |
virtual void | useContext () |
virtual void | useFullContext () |
Friends | |
class | ELadministrator |
class | ELdestControl |
Definition at line 54 of file ELdestination.h.
edm::service::ELdestination::ELdestination | ( | ) |
Definition at line 44 of file ELdestination.cc.
References dtNoiseDBValidation_cfg::cerr.
: threshold ( ELzeroSeverity ) , traceThreshold( ELhighestSeverity ) , limits ( ) , preamble ( "%MSG" ) , newline ( "\n" ) , indent ( " " ) , lineLength ( defaultLineLength ) , ignoreMostModules (false) , respondToThese() , respondToMostModules (false) , ignoreThese() { #ifdef ELdestinationCONSTRUCTOR_TRACE std::cerr << "Constructor for ELdestination\n"; #endif } // ELdestination()
edm::service::ELdestination::~ELdestination | ( | ) | [virtual] |
Definition at line 65 of file ELdestination.cc.
References dtNoiseDBValidation_cfg::cerr.
{ #ifdef ELdestinationCONSTRUCTOR_TRACE std::cerr << "Destructor for ELdestination\n"; #endif } // ~ELdestination()
edm::service::ELdestination::ELdestination | ( | const ELdestination & | orig | ) | [private] |
void edm::service::ELdestination::attachEpilogue | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 242 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::attachTime | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 239 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::changeFile | ( | const ELstring & | filename | ) | [protected, virtual] |
Reimplemented in edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 201 of file ELdestination.cc.
References edm::ELwarning2, lut2db_cfg::filename, log(), lumiQueryAPI::msg, newline, edm::service::noosMsg, and edm::service::notELoutputMsg.
{ edm::ErrorObj msg( ELwarning2, noosMsg ); msg << notELoutputMsg << newline << "file requested is" << filename; log( msg ); }
void edm::service::ELdestination::changeFile | ( | std::ostream & | os | ) | [protected, virtual] |
Reimplemented in edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 195 of file ELdestination.cc.
References edm::ELwarning2, log(), lumiQueryAPI::msg, edm::service::noosMsg, and edm::service::notELoutputMsg.
{ edm::ErrorObj msg( ELwarning2, noosMsg ); msg << notELoutputMsg; log( msg ); }
void edm::service::ELdestination::clearSummary | ( | ) | [protected, virtual] |
Reimplemented in edm::service::ELstatistics.
Definition at line 98 of file ELdestination.cc.
References edm::ELwarning2, edm::service::hereMsg, log(), lumiQueryAPI::msg, and edm::service::noClearSummaryMsg.
{ edm::ErrorObj msg( ELwarning2, noClearSummaryMsg ); msg << hereMsg; log( msg ); } // clearSummary()
virtual ELdestination* edm::service::ELdestination::clone | ( | ) | const [pure virtual] |
Implemented in edm::ELlog4cplus, edm::service::ELcollected, edm::service::ELerrorList, edm::service::ELfwkJobReport, edm::service::ELoutput, and edm::service::ELstatistics.
Referenced by edm::service::ELadministrator::attach().
void edm::service::ELdestination::excludeModule | ( | ELstring const & | moduleName | ) | [protected, virtual] |
Definition at line 141 of file ELdestination.cc.
References ignoreModule(), and respondToModule().
{ respondToModule("*"); ignoreModule(moduleName); }
void edm::service::ELdestination::filterModule | ( | ELstring const & | moduleName | ) | [protected, virtual] |
Definition at line 136 of file ELdestination.cc.
References ignoreModule(), and respondToModule().
{ ignoreModule("*"); respondToModule(moduleName); }
void edm::service::ELdestination::finish | ( | ) | [virtual] |
void edm::service::ELdestination::flush | ( | ) | [protected, virtual] |
Reimplemented in edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 207 of file ELdestination.cc.
References edm::ELwarning2, log(), lumiQueryAPI::msg, and edm::service::noosMsg.
Referenced by edm::ELlog4cplus::emit(), and edm::service::ELstatistics::summary().
{ edm::ErrorObj msg( ELwarning2, noosMsg ); msg << "cannot flush()"; log( msg ); }
int edm::service::ELdestination::getLineLength | ( | ) | const [private, virtual] |
ELstring edm::service::ELdestination::getNewline | ( | ) | const [virtual] |
void edm::service::ELdestination::ignoreModule | ( | ELstring const & | moduleName | ) | [protected, virtual] |
Definition at line 124 of file ELdestination.cc.
References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.
Referenced by excludeModule(), and filterModule().
{ if (moduleName=="*") { respondToMostModules = false; ignoreMostModules = true; respondToThese.clear(); ignoreThese.clear(); } else { ignoreThese.insert(moduleName); respondToThese.erase(moduleName); } }
void edm::service::ELdestination::includeContext | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 230 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::includeModule | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 221 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::includeSerial | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 233 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::includeSubroutine | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 224 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::includeText | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 218 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::includeTime | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 227 of file ELdestination.cc.
{ ; }
bool edm::service::ELdestination::log | ( | const edm::ErrorObj & | msg | ) | [virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELcollected, edm::service::ELerrorList, edm::service::ELfwkJobReport, edm::service::ELoutput, and edm::service::ELstatistics.
Definition at line 78 of file ELdestination.cc.
Referenced by changeFile(), clearSummary(), flush(), and summarization().
{ return false; }
void edm::service::ELdestination::noTerminationSummary | ( | ) | [private, virtual] |
ELdestination& edm::service::ELdestination::operator= | ( | const ELdestination & | orig | ) | [private] |
void edm::service::ELdestination::respondToModule | ( | ELstring const & | moduleName | ) | [protected, virtual] |
Definition at line 112 of file ELdestination.cc.
References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.
Referenced by excludeModule(), and filterModule().
{ if (moduleName=="*") { ignoreMostModules = false; respondToMostModules = true; ignoreThese.clear(); respondToThese.clear(); } else { respondToThese.insert(moduleName); ignoreThese.erase(moduleName); } }
void edm::service::ELdestination::separateEpilogue | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 241 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::separateTime | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 238 of file ELdestination.cc.
{ ; }
int edm::service::ELdestination::setLineLength | ( | int | len | ) | [private, virtual] |
Definition at line 248 of file ELdestination.cc.
References lineLength, and groupFilesInBlocks::temp.
{ int temp=lineLength; lineLength = len; return temp; }
void edm::service::ELdestination::setTableLimit | ( | int | n | ) | [protected, virtual] |
Definition at line 178 of file ELdestination.cc.
References limits, and edm::service::ELlimitsTable::setTableLimit().
std::map< ELextendedID, StatsCount > edm::service::ELdestination::statisticsMap | ( | ) | const [protected, virtual] |
Reimplemented in edm::service::ELstatistics.
Definition at line 191 of file ELdestination.cc.
{
return std::map<ELextendedID , StatsCount> ();
}
void edm::service::ELdestination::summarization | ( | const edm::ELstring & | title, |
const edm::ELstring & | sumLines | ||
) | [virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 181 of file ELdestination.cc.
References edm::ELwarning2, edm::service::hereMsg, log(), lumiQueryAPI::msg, newline, edm::service::noSummarizationMsg, and indexGen::title.
{ edm::ErrorObj msg( ELwarning2, noSummarizationMsg ); msg << hereMsg << newline << title; log( msg ); }
void edm::service::ELdestination::summary | ( | ELstring & | s, |
const ELstring & | title = "" |
||
) | [protected, virtual] |
Reimplemented in edm::service::ELstatistics.
Definition at line 166 of file ELdestination.cc.
References edm::ELwarning2, edm::service::hereMsg, and edm::service::noSummaryMsg.
{ s = ELstring("%MSG") + ELwarning2.getSymbol() + " " + noSummaryMsg + " " + hereMsg + "\n" + title + "\n"; } // summary()
void edm::service::ELdestination::summary | ( | ) | [protected, virtual] |
void edm::service::ELdestination::summary | ( | ELdestControl & | dest, |
const ELstring & | title = "" |
||
) | [protected, virtual] |
Reimplemented in edm::service::ELstatistics.
Definition at line 148 of file ELdestination.cc.
References edm::ELwarning2, edm::service::ELdestControl::getNewline(), edm::service::hereMsg, edm::service::ELdestControl::log(), lumiQueryAPI::msg, edm::service::noSummaryMsg, and indexGen::title.
{ edm::ErrorObj msg( ELwarning2, noSummaryMsg ); msg << noSummaryMsg << " " << hereMsg << dest.getNewline() << title; dest.log( msg ); } // summary()
void edm::service::ELdestination::summary | ( | std::ostream & | os, |
const ELstring & | title = "" |
||
) | [protected, virtual] |
Reimplemented in edm::service::ELstatistics.
Definition at line 157 of file ELdestination.cc.
References edm::ELwarning2, edm::service::hereMsg, and edm::service::noSummaryMsg.
{ os << "%MSG" << ELwarning2.getSymbol() << " " << noSummaryMsg << " " << hereMsg << std::endl << title << std::endl; } // summary()
void edm::service::ELdestination::summaryForJobReport | ( | std::map< std::string, double > & | sm | ) | [protected, virtual] |
void edm::service::ELdestination::suppressContext | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 229 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::suppressModule | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 220 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::suppressSerial | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 232 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::suppressSubroutine | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 223 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::suppressText | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 217 of file ELdestination.cc.
{ ; } // $$ jvr
void edm::service::ELdestination::suppressTime | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 226 of file ELdestination.cc.
{ ; }
bool edm::service::ELdestination::thisShouldBeIgnored | ( | const ELstring & | s | ) | const [protected, virtual] |
Definition at line 261 of file ELdestination.cc.
References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.
Referenced by edm::service::ELfwkJobReport::log(), edm::service::ELoutput::log(), edm::service::ELerrorList::log(), edm::service::ELcollected::log(), edm::service::ELstatistics::log(), and edm::ELlog4cplus::log().
{ if (respondToMostModules) { return ( ignoreThese.find(s) != ignoreThese.end() ); } else if (ignoreMostModules) { return ( respondToThese.find(s) == respondToThese.end() ); } else { return false; } }
void edm::service::ELdestination::useContext | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 236 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::useFullContext | ( | ) | [private, virtual] |
Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.
Definition at line 235 of file ELdestination.cc.
{ ; }
void edm::service::ELdestination::wipe | ( | ) | [protected, virtual] |
Reimplemented in edm::service::ELstatistics.
Definition at line 107 of file ELdestination.cc.
References limits, and edm::service::ELlimitsTable::wipe().
{ limits.wipe(); }
void edm::service::ELdestination::zero | ( | ) | [protected, virtual] |
Reimplemented in edm::service::ELstatistics.
Definition at line 110 of file ELdestination.cc.
References limits, and edm::service::ELlimitsTable::zero().
{ limits.zero(); }
friend class ELadministrator [friend] |
Reimplemented in edm::service::ELstatistics.
Definition at line 56 of file ELdestination.h.
friend class ELdestControl [friend] |
Reimplemented in edm::service::ELcollected, edm::service::ELerrorList, edm::service::ELfwkJobReport, edm::service::ELoutput, and edm::service::ELstatistics.
Definition at line 57 of file ELdestination.h.
const int edm::service::ELdestination::defaultLineLength = 80 [static, protected] |
Definition at line 135 of file ELdestination.h.
bool edm::service::ELdestination::ignoreMostModules [protected] |
Definition at line 129 of file ELdestination.h.
Referenced by edm::service::ELcollected::ELcollected(), edm::service::ELerrorList::ELerrorList(), edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::service::ELstatistics::ELstatistics(), ignoreModule(), respondToModule(), and thisShouldBeIgnored().
ELset_string edm::service::ELdestination::ignoreThese [protected] |
Definition at line 132 of file ELdestination.h.
Referenced by edm::service::ELcollected::ELcollected(), edm::service::ELerrorList::ELerrorList(), edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::service::ELstatistics::ELstatistics(), ignoreModule(), respondToModule(), and thisShouldBeIgnored().
ELstring edm::service::ELdestination::indent [protected] |
Definition at line 127 of file ELdestination.h.
Referenced by edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::ELlog4cplus::emit(), and edm::service::ELoutput::emitToken().
ELlimitsTable edm::service::ELdestination::limits [protected] |
Definition at line 124 of file ELdestination.h.
Referenced by edm::service::ELstatistics::clearSummary(), edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::service::ELfwkJobReport::log(), edm::service::ELerrorList::log(), edm::service::ELoutput::log(), edm::service::ELcollected::log(), edm::ELlog4cplus::log(), setTableLimit(), wipe(), edm::service::ELstatistics::wipe(), zero(), and edm::service::ELstatistics::zero().
int edm::service::ELdestination::lineLength [protected] |
Definition at line 128 of file ELdestination.h.
Referenced by edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::ELlog4cplus::emit(), edm::service::ELfwkJobReport::emitToken(), edm::service::ELoutput::emitToken(), getLineLength(), setLineLength(), edm::service::ELoutput::summarization(), edm::ELlog4cplus::summarization(), and edm::service::ELfwkJobReport::summarization().
ELstring edm::service::ELdestination::newline [protected] |
Definition at line 126 of file ELdestination.h.
Referenced by changeFile(), edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::ELlog4cplus::emit(), edm::service::ELcollected::emitToken(), edm::service::ELoutput::emitToken(), getNewline(), edm::service::ELoutput::log(), and summarization().
ELstring edm::service::ELdestination::preamble [protected] |
Definition at line 125 of file ELdestination.h.
Referenced by edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::service::ELoutput::log(), and edm::ELlog4cplus::log().
bool edm::service::ELdestination::respondToMostModules [protected] |
Definition at line 131 of file ELdestination.h.
Referenced by edm::service::ELcollected::ELcollected(), edm::service::ELerrorList::ELerrorList(), edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::service::ELstatistics::ELstatistics(), ignoreModule(), respondToModule(), and thisShouldBeIgnored().
Definition at line 130 of file ELdestination.h.
Referenced by edm::service::ELcollected::ELcollected(), edm::service::ELerrorList::ELerrorList(), edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::service::ELstatistics::ELstatistics(), ignoreModule(), respondToModule(), and thisShouldBeIgnored().
Definition at line 122 of file ELdestination.h.
Referenced by edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::service::ELfwkJobReport::log(), edm::service::ELerrorList::log(), edm::service::ELoutput::log(), edm::service::ELcollected::log(), edm::service::ELstatistics::log(), and edm::ELlog4cplus::log().
Definition at line 123 of file ELdestination.h.
Referenced by edm::service::ELfwkJobReport::ELfwkJobReport(), edm::ELlog4cplus::ELlog4cplus(), edm::service::ELoutput::ELoutput(), edm::service::ELoutput::log(), edm::service::ELcollected::log(), and edm::ELlog4cplus::log().