LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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 | 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 | log (mf::ErrorObj &) override |
void | summary () override |
Private Attributes | |
cet::ostream_handle | osh_ |
Definition at line 12 of file ELstatistics.h.
Definition at line 17 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 26 of file ELdestination.h.
|
default |
mf::service::ELstatistics::ELstatistics | ( | Parameters const & | pset, |
std::ostream & | osp | ||
) |
Definition at line 14 of file ELstatistics.cc.
mf::service::ELstatistics::ELstatistics | ( | Config const & | config, |
cet::ostream_handle && | osh | ||
) |
Definition at line 10 of file ELstatistics.cc.
References mf::service::ELstatistics::Config::elDestConfig, and osh_.
|
delete |
|
delete |
|
protectedinherited |
Definition at line 390 of file ELdestination.cc.
References mf::service::ELdestination::charsOnLine_, mf::service::ELdestination::format_, art::detail::indent(), and mf::service::ELdestination::MsgFormatSettings::lineLength.
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 444 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, 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 534 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 507 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, mf::service::ELdestination::TEXT, util::to_string(), and mf::service::ELdestination::MsgFormatSettings::want().
Referenced by mfplugins::ELsyslog::fillUsrMsg(), and mf::service::ELdestination::log().
|
virtualinherited |
Definition at line 703 of file ELdestination.cc.
|
protectedvirtualinherited |
Definition at line 715 of file ELdestination.cc.
References mf::ELwarning, and mf::service::ELdestination::log().
|
protectedinherited |
Definition at line 576 of file ELdestination.cc.
References art::left(), n, mf::ELseverityLevel::nLevels, art::right(), and mf::service::ELdestination::statsMap_.
Referenced by summary(), and mf::service::ELdestination::summary().
|
overrideprivatevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 19 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 819 of file ELdestination.cc.
References mf::service::ELdestination::xidLimiters_.
Referenced by summary(), and mf::service::ELdestination::summary().
|
protectedinherited |
Definition at line 813 of file ELdestination.cc.
References mf::service::ELdestination::statsMap_.
Referenced by summary(), and mf::service::ELdestination::summary().
|
protectedvirtualinherited |
Reimplemented in mfplugins::ELsyslog, and mf::service::ELostreamOutput.
Definition at line 543 of file ELdestination.cc.
Referenced by mf::service::ELdestination::log(), and mf::service::ELdestination::summary().
|
inherited |
|
protectedinherited |
Definition at line 726 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_, r, 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 360 of file ELdestination.cc.
Referenced by log(), and mf::service::ELdestination::log().
|
overrideprivatevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 48 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 229 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), and mf::service::ELdestination::skipMsg().
|
protectedinherited |
Definition at line 226 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), and mf::service::ELdestination::skipMsg().
|
protectedinherited |
Definition at line 227 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), and mf::service::ELdestination::skipMsg().
|
protectedinherited |
Definition at line 228 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), and mf::service::ELdestination::skipMsg().
|
protectedinherited |
Definition at line 225 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 34 of file ELstatistics.h.
Referenced by ELstatistics(), and summary().
|
protectedinherited |
Definition at line 232 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 234 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), summary(), and mf::service::ELdestination::summary().
|
protectedinherited |
Definition at line 231 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 224 of file ELdestination.h.
Referenced by log(), mf::service::ELdestination::log(), and mf::service::ELdestination::setThreshold().
|
protectedinherited |
Definition at line 233 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 230 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), mf::service::ELdestination::resetLimiters(), and mf::service::ELdestination::skipMsg().