LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 | |
ELsyslog (Parameters const &pset) | |
void | setThreshold (ELseverityLevel sv) |
virtual void | log (mf::ErrorObj &) |
virtual void | finish () |
virtual void | summary () |
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 | 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 | fillPrefix (ostringstream &, ErrorObj const &) override |
void | fillUsrMsg (ostringstream &, ErrorObj const &) override |
void | fillSuffix (ostringstream &, ErrorObj const &) override |
void | routePayload (ostringstream const &, ErrorObj const &) override |
int | syslogLevel (ELseverityLevel) |
Definition at line 28 of file syslog_mfPlugin.cc.
Definition at line 35 of file syslog_mfPlugin.cc.
|
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.
mfplugins::ELsyslog::ELsyslog | ( | Parameters const & | pset | ) |
Definition at line 48 of file syslog_mfPlugin.cc.
|
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().
|
overrideprivatevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 55 of file syslog_mfPlugin.cc.
References mf::service::ELdestination::format_, mf::GetIteration(), mf::ErrorObj::timestamp(), mf::service::ELdestination::MsgFormatSettings::timestamp(), and mf::ErrorObj::xid().
|
overrideprivatevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 75 of file syslog_mfPlugin.cc.
|
overrideprivatevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 65 of file syslog_mfPlugin.cc.
References mf::service::ELdestination::fillUsrMsg().
|
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 mf::service::ELstatistics::summary(), and mf::service::ELdestination::summary().
|
virtualinherited |
Reimplemented in mf::service::ELstatistics.
Definition at line 547 of file ELdestination.cc.
References mf::ErrorObj::context(), mf::service::ELdestination::fillPrefix(), mf::service::ELdestination::fillSuffix(), mf::service::ELdestination::fillUsrMsg(), mf::service::ELdestination::outputStatistics_, mf::service::ELdestination::routePayload(), 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().
Referenced by mf::service::ELdestination::flush().
|
protectedinherited |
Definition at line 819 of file ELdestination.cc.
References mf::service::ELdestination::xidLimiters_.
Referenced by mf::service::ELstatistics::summary(), and mf::service::ELdestination::summary().
|
protectedinherited |
Definition at line 813 of file ELdestination.cc.
References mf::service::ELdestination::statsMap_.
Referenced by mf::service::ELstatistics::summary(), and mf::service::ELdestination::summary().
|
overrideprivatevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 79 of file syslog_mfPlugin.cc.
References mf::ELextendedID::severity(), syslogLevel(), and mf::ErrorObj::xid().
|
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 mf::service::ELstatistics::log(), and mf::service::ELdestination::log().
|
protectedinherited |
Definition at line 360 of file ELdestination.cc.
Referenced by mf::service::ELstatistics::log(), and mf::service::ELdestination::log().
|
virtualinherited |
Reimplemented in mf::service::ELstatistics.
Definition at line 686 of file ELdestination.cc.
References mf::ELzeroSeverity, mf::service::ELdestination::formSummary(), mf::service::ELdestination::outputStatistics_, mf::service::ELdestination::reset_, mf::service::ELdestination::resetLimiters(), mf::service::ELdestination::resetMsgCounters(), mf::service::ELdestination::routePayload(), and mf::service::ELdestination::updatedStats_.
|
private |
Definition at line 86 of file syslog_mfPlugin.cc.
References mf::ELseverityLevel::ELsev_error, mf::ELseverityLevel::ELsev_info, mf::ELseverityLevel::ELsev_severe, mf::ELseverityLevel::ELsev_success, mf::ELseverityLevel::ELsev_warning, mf::ELseverityLevel::getLevel(), and mf::errors::LogicError.
Referenced by routePayload().
|
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(), fillPrefix(), mf::service::ELdestination::fillPrefix(), mf::service::ELdestination::fillSuffix(), and mf::service::ELdestination::fillUsrMsg().
|
protectedinherited |
Definition at line 232 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), mf::service::ELstatistics::log(), mf::service::ELdestination::log(), mf::service::ELstatistics::summary(), and mf::service::ELdestination::summary().
|
protectedinherited |
Definition at line 234 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), mf::service::ELstatistics::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(), mf::service::ELstatistics::log(), mf::service::ELdestination::log(), and mf::service::ELdestination::resetMsgCounters().
|
protectedinherited |
Definition at line 224 of file ELdestination.h.
Referenced by mf::service::ELstatistics::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(), mf::service::ELstatistics::log(), mf::service::ELdestination::log(), mf::service::ELstatistics::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().