LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "ELostreamOutput.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 | |
~ELostreamOutput () | |
ELostreamOutput (Parameters const &config, cet::ostream_handle &&, bool emitAtStart=false) | |
ELostreamOutput (Parameters const &config, std::ostream &, bool emitAtStart=false) | |
ELostreamOutput (Config const &config, cet::ostream_handle &&, bool emitAtStart=false) | |
ELostreamOutput (ELostreamOutput const &)=delete | |
ELostreamOutput (ELostreamOutput &&)=delete | |
ELostreamOutput & | operator= (ELostreamOutput const &)=delete |
ELostreamOutput & | operator= (ELostreamOutput &&)=delete |
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 | 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 | 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 | routePayload (std::ostringstream const &oss, mf::ErrorObj const &msg) override |
Private Attributes | |
cet::ostream_handle | osh |
mf::ELextendedID | xid {} |
Definition at line 24 of file ELostreamOutput.h.
Definition at line 31 of file ELostreamOutput.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::ELostreamOutput::~ELostreamOutput | ( | ) |
Definition at line 17 of file ELostreamOutput.cc.
mf::service::ELostreamOutput::ELostreamOutput | ( | Parameters const & | config, |
cet::ostream_handle && | h, | ||
bool | emitAtStart = false |
||
) |
Definition at line 25 of file ELostreamOutput.cc.
mf::service::ELostreamOutput::ELostreamOutput | ( | Parameters const & | config, |
std::ostream & | os, | ||
bool | emitAtStart = false |
||
) |
Definition at line 19 of file ELostreamOutput.cc.
mf::service::ELostreamOutput::ELostreamOutput | ( | Config const & | config, |
cet::ostream_handle && | h, | ||
bool | emitAtStart = false |
||
) |
Definition at line 31 of file ELostreamOutput.cc.
References mf::service::ELostreamOutput::Config::elDestConfig, mf::service::ELdestination::emitToken(), 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 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 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().
|
delete |
|
delete |
|
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 53 of file ELostreamOutput.cc.
References osh.
|
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_.
|
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 54 of file ELostreamOutput.h.
Referenced by ELostreamOutput(), and routePayload().
|
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().
|
private |
Definition at line 55 of file ELostreamOutput.h.
|
protectedinherited |
Definition at line 265 of file ELdestination.h.
Referenced by mf::service::ELdestination::ELdestination(), mf::service::ELdestination::resetLimiters(), and mf::service::ELdestination::skipMsg().