1 #ifndef messagefacility_MessageService_ELdestination_h 2 #define messagefacility_MessageService_ELdestination_h 5 #include "cetlib/PluginTypeDeducer.h" 85 void add(std::string
const& context,
bool reactedTo);
89 bool ignoredFlag_{
false};
90 std::string context1_{};
91 std::string context2_{};
92 std::string contextLast_{};
118 std::string timestamp(timeval
const&);
125 std::string timeFmt_{};
198 std::
string const& s,
200 bool preambleMode = false);
219 mf::ErrorObj const& msg);
222 virtual
void flush();
244 struct PluginTypeDeducer<
mf::service::ELdestination> {
fhicl::Table< MsgFormatSettings::Config > format
virtual void fillUsrMsg(std::ostringstream &, mf::ErrorObj const &msg)
bool skipMsg(ELextendedID const &)
static std::string limit_comment()
static std::string const value
fhicl::TableFragment< MsgStatistics::Config > msgStatistics
void emitToken(std::ostream &os, std::string const &s, bool nl=false, bool preambleMode=false)
ELdestination & operator=(ELdestination const &)=delete
fhicl::OptionalDelegatedParameter categories
virtual void fillSuffix(std::ostringstream &, mf::ErrorObj const &msg)
std::map< std::string const, CategoryParams > categoryParams_
virtual void log(mf::ErrorObj &)
fhicl::Atom< int > timespan
fhicl::Atom< std::string > dest_type
static std::string timespan_comment()
fhicl::Atom< std::string > threshold
fhicl::Atom< int > reportEvery
std::map< ELextendedID const, StatsCount > statsMap_
std::string summarizeContext(std::string const &)
static std::string reportEvery_comment()
ELseverityLevel threshold_
fhicl::Atom< bool > outputStatistics
std::string formSummary()
virtual ~ELdestination() noexcept=default
virtual void fillPrefix(std::ostringstream &, mf::ErrorObj const &msg)
MsgFormatSettings format_
void setThreshold(ELseverityLevel sv)
std::map< ELextendedID const, XidLimiter > xidLimiters_
time_t previousTimestamp_
std::string nl(std::size_t i=1)
virtual void routePayload(std::ostringstream const &, mf::ErrorObj const &msg)