LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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 30 of file syslog_mfPlugin.cc.
Definition at line 37 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 30 of file ELdestination.h.
mfplugins::ELsyslog::ELsyslog | ( | Parameters const & | pset | ) |
Definition at line 50 of file syslog_mfPlugin.cc.
|
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().
|
overrideprivatevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 57 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 77 of file syslog_mfPlugin.cc.
|
overrideprivatevirtual |
Reimplemented from mf::service::ELdestination.
Definition at line 67 of file syslog_mfPlugin.cc.
References mf::service::ELdestination::fillUsrMsg().
|
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 mf::service::ELstatistics::summary(), and mf::service::ELdestination::summary().
|
virtualinherited |
Reimplemented in mf::service::ELstatistics.
Definition at line 565 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 840 of file ELdestination.cc.
References mf::service::ELdestination::xidLimiters_.
Referenced by mf::service::ELstatistics::summary(), and mf::service::ELdestination::summary().
|
protectedinherited |
Definition at line 834 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 81 of file syslog_mfPlugin.cc.
References mf::ELextendedID::severity(), syslogLevel(), and mf::ErrorObj::xid().
|
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 mf::service::ELstatistics::log(), and mf::service::ELdestination::log().
|
protectedinherited |
Definition at line 378 of file ELdestination.cc.
Referenced by mf::service::ELstatistics::log(), and mf::service::ELdestination::log().
|
virtualinherited |
Reimplemented in mf::service::ELstatistics.
Definition at line 706 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(), s, and mf::service::ELdestination::updatedStats_.
|
private |
Definition at line 88 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(), LOG_DEBUG, LOG_INFO, LOG_WARNING, and mf::errors::LogicError.
Referenced by routePayload().
|
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(), fillPrefix(), mf::service::ELdestination::fillPrefix(), mf::service::ELdestination::fillSuffix(), and mf::service::ELdestination::fillUsrMsg().
|
protectedinherited |
Definition at line 267 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 269 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), mf::service::ELstatistics::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(), mf::service::ELstatistics::log(), mf::service::ELdestination::log(), and mf::service::ELdestination::resetMsgCounters().
|
protectedinherited |
Definition at line 259 of file ELdestination.h.
Referenced by mf::service::ELstatistics::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(), mf::service::ELstatistics::log(), mf::service::ELdestination::log(), mf::service::ELstatistics::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().