LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "ELstatistics.h"
Classes | |
struct | Config |
Public Types | |
using | Parameters = fhicl::WrappedTable< Config > |
enum | flag_enum { NO_LINE_BREAKS, TIMESTAMP, MILLISECOND, MODULE, SUBROUTINE, TEXT, SOME_CONTEXT, SERIAL, FULL_CONTEXT, TIME_SEPARATE, EPILOGUE_SEPARATE, NFLAGS } |
Public Member Functions | |
~ELstatistics () | |
ELstatistics (Parameters const &, std::ostream &) | |
ELstatistics (Config const &, cet::ostream_handle &&) | |
ELstatistics (ELstatistics const &)=delete | |
ELstatistics (ELstatistics &&)=delete | |
ELstatistics & | operator= (ELstatistics const &)=delete |
ELstatistics & | operator= (ELstatistics &&)=delete |
void | log (mf::ErrorObj &) override |
void | setThreshold (ELseverityLevel sv) |
virtual void | finish () |
Protected Member Functions | |
std::string | summarizeContext (std::string const &) |
void | emitToken (std::ostream &os, std::string const &s, bool nl=false, bool preambleMode=false) |
std::string | formSummary () |
bool | skipMsg (ELextendedID const &) |
void | resetLimiters () |
void | resetMsgCounters () |
virtual void | fillPrefix (std::ostringstream &, mf::ErrorObj const &msg) |
virtual void | fillUsrMsg (std::ostringstream &, mf::ErrorObj const &msg) |
virtual void | fillSuffix (std::ostringstream &, mf::ErrorObj const &msg) |
virtual void | routePayload (std::ostringstream const &, mf::ErrorObj const &msg) |
virtual void | flush () |
Protected Attributes | |
ELseverityLevel | threshold_ |
MsgFormatSettings | format_ |
int | defaultLimit_ |
int | defaultReportEvery_ |
int | defaultTimespan_ |
std::map< std::string const, CategoryParams > | categoryParams_ |
std::map< ELextendedID const, XidLimiter > | xidLimiters_ |
std::map< ELextendedID const, StatsCount > | statsMap_ |
bool | outputStatistics_ {false} |
bool | updatedStats_ {false} |
bool | reset_ {false} |
Private Member Functions | |
void | summary () override |
Private Attributes | |
cet::ostream_handle | osh_ |
Definition at line 30 of file ELstatistics.h.
Definition at line 37 of file ELstatistics.h.
|
inherited |
Enumerator | |
---|---|
NO_LINE_BREAKS | |
TIMESTAMP | |
MILLISECOND | |
MODULE | |
SUBROUTINE | |
TEXT | |
SOME_CONTEXT | |
SERIAL | |
FULL_CONTEXT | |
TIME_SEPARATE | |
EPILOGUE_SEPARATE | |
NFLAGS |
Definition at line 30 of file ELdestination.h.
mf::service::ELstatistics::~ELstatistics | ( | ) |
Definition at line 14 of file ELstatistics.cc.
mf::service::ELstatistics::ELstatistics | ( | Parameters const & | pset, |
std::ostream & | osp | ||
) |
Definition at line 20 of file ELstatistics.cc.
mf::service::ELstatistics::ELstatistics | ( | Config const & | config, |
cet::ostream_handle && | osh | ||
) |
Definition at line 16 of file ELstatistics.cc.
References mf::service::ELstatistics::Config::elDestConfig, and osh_.
|
delete |
|
delete |
|
protectedinherited |
Definition at line 408 of file ELdestination.cc.
References mf::service::ELdestination::charsOnLine_, mf::service::ELdestination::format_, art::detail::indent(), mf::service::ELdestination::MsgFormatSettings::lineLength, and s.
Referenced by mf::service::ELostreamOutput::ELostreamOutput(), mf::service::ELdestination::fillPrefix(), mf::service::ELdestination::fillSuffix(), and mf::service::ELdestination::fillUsrMsg().
|
protectedvirtualinherited |
Reimplemented in mfplugins::ELsyslog.
Definition at line 462 of file ELdestination.cc.
References mf::service::ELdestination::charsOnLine_, mf::ErrorObj::context(), mf::service::ELdestination::emitToken(), mf::service::ELdestination::EPILOGUE_SEPARATE, mf::service::ELdestination::format_, mf::ErrorObj::idOverflow(), mf::ErrorObj::is_verbatim(), mf::service::ELdestination::MODULE, s, mf::ErrorObj::serial(), mf::service::ELdestination::SERIAL, mf::service::ELdestination::SOME_CONTEXT, mf::service::ELdestination::SUBROUTINE, mf::service::ELdestination::TIME_SEPARATE, mf::service::ELdestination::TIMESTAMP, mf::ErrorObj::timestamp(), mf::service::ELdestination::MsgFormatSettings::timestamp(), mf::service::ELdestination::MsgFormatSettings::want(), and mf::ErrorObj::xid().
Referenced by mf::service::ELdestination::log().
|
protectedvirtualinherited |
Reimplemented in mfplugins::ELsyslog.
Definition at line 552 of file ELdestination.cc.
References mf::service::ELdestination::emitToken(), mf::service::ELdestination::format_, mf::ErrorObj::is_verbatim(), mf::service::ELdestination::NO_LINE_BREAKS, and mf::service::ELdestination::MsgFormatSettings::want().
Referenced by mf::service::ELdestination::log().
|
protectedvirtualinherited |
Reimplemented in mfplugins::ELsyslog.
Definition at line 525 of file ELdestination.cc.
References mf::service::ELdestination::emitToken(), mf::ErrorObj::filename(), mf::service::ELdestination::format_, mf::ErrorObj::is_verbatim(), mf::ErrorObj::items(), mf::ErrorObj::lineNumber(), mf::service::ELdestination::NO_LINE_BREAKS, s, mf::service::ELdestination::TEXT, util::flags::to_string(), and mf::service::ELdestination::MsgFormatSettings::want().
Referenced by mfplugins::ELsyslog::fillUsrMsg(), and mf::service::ELdestination::log().
|
virtualinherited |
Definition at line 723 of file ELdestination.cc.
|
protectedvirtualinherited |
Definition at line 735 of file ELdestination.cc.
References mf::ELwarning, mf::service::ELdestination::log(), and s.
|
protectedinherited |
Definition at line 594 of file ELdestination.cc.
References art::left(), n, mf::ELseverityLevel::nLevels, art::right(), s, and mf::service::ELdestination::statsMap_.
Referenced by summary(), and mf::service::ELdestination::summary().
|
overridevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 25 of file ELstatistics.cc.
References mf::ErrorObj::context(), mf::service::ELdestination::outputStatistics_, mf::ErrorObj::setReactedTo(), mf::ELextendedID::severity(), mf::service::ELdestination::skipMsg(), mf::service::ELdestination::statsMap_, mf::service::ELdestination::summarizeContext(), mf::service::ELdestination::threshold_, mf::service::ELdestination::updatedStats_, and mf::ErrorObj::xid().
|
delete |
|
delete |
|
protectedinherited |
Definition at line 840 of file ELdestination.cc.
References mf::service::ELdestination::xidLimiters_.
Referenced by summary(), and mf::service::ELdestination::summary().
|
protectedinherited |
Definition at line 834 of file ELdestination.cc.
References mf::service::ELdestination::statsMap_.
Referenced by summary(), and mf::service::ELdestination::summary().
|
protectedvirtualinherited |
Reimplemented in mf::service::ELostreamOutput, and mfplugins::ELsyslog.
Definition at line 561 of file ELdestination.cc.
Referenced by mf::service::ELdestination::log(), and mf::service::ELdestination::summary().
|
inherited |
|
protectedinherited |
Definition at line 746 of file ELdestination.cc.
References mf::service::ELdestination::categoryParams_, mf::service::ELdestination::defaultLimit_, mf::service::ELdestination::defaultReportEvery_, mf::service::ELdestination::defaultTimespan_, mf::ELextendedID::id(), mf::service::ELdestination::XidLimiter::limit_, mf::service::ELdestination::XidLimiter::msgCount_, mf::service::ELdestination::XidLimiter::previousTimestamp_, mf::service::ELdestination::XidLimiter::reportEvery_, mf::service::ELdestination::XidLimiter::skippedMsgCount_, mf::service::ELdestination::XidLimiter::timespan_, and mf::service::ELdestination::xidLimiters_.
Referenced by log(), and mf::service::ELdestination::log().
|
protectedinherited |
Definition at line 378 of file ELdestination.cc.
Referenced by log(), and mf::service::ELdestination::log().
|
overrideprivatevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 54 of file ELstatistics.cc.
References mf::service::ELdestination::formSummary(), osh_, mf::service::ELdestination::outputStatistics_, mf::service::ELdestination::reset_, mf::service::ELdestination::resetLimiters(), mf::service::ELdestination::resetMsgCounters(), and mf::service::ELdestination::updatedStats_.
|
protectedinherited |
Definition at line 264 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), and mf::service::ELdestination::skipMsg().
|
protectedinherited |
Definition at line 261 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), and mf::service::ELdestination::skipMsg().
|
protectedinherited |
Definition at line 262 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), and mf::service::ELdestination::skipMsg().
|
protectedinherited |
Definition at line 263 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), and mf::service::ELdestination::skipMsg().
|
protectedinherited |
Definition at line 260 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), mf::service::ELdestination::emitToken(), mfplugins::ELsyslog::fillPrefix(), mf::service::ELdestination::fillPrefix(), mf::service::ELdestination::fillSuffix(), and mf::service::ELdestination::fillUsrMsg().
|
private |
Definition at line 57 of file ELstatistics.h.
Referenced by ELstatistics(), and summary().
|
protectedinherited |
Definition at line 267 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), log(), mf::service::ELdestination::log(), summary(), and mf::service::ELdestination::summary().
|
protectedinherited |
Definition at line 269 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), summary(), and mf::service::ELdestination::summary().
|
protectedinherited |
Definition at line 266 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), mf::service::ELdestination::formSummary(), log(), mf::service::ELdestination::log(), and mf::service::ELdestination::resetMsgCounters().
|
protectedinherited |
Definition at line 259 of file ELdestination.h.
Referenced by log(), mf::service::ELdestination::log(), and mf::service::ELdestination::setThreshold().
|
protectedinherited |
Definition at line 268 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), log(), mf::service::ELdestination::log(), summary(), and mf::service::ELdestination::summary().
|
protectedinherited |
Definition at line 265 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), mf::service::ELdestination::resetLimiters(), and mf::service::ELdestination::skipMsg().