3 #include "cetlib/PluginTypeDeducer.h" 4 #include "cetlib/ProvideFilePathMacro.h" 5 #include "cetlib/ProvideMakePluginMacros.h" 43 void fillPrefix(ostringstream&,
ErrorObj const&)
override;
44 void fillUsrMsg(ostringstream&,
ErrorObj const&)
override;
45 void fillSuffix(ostringstream&,
ErrorObj const&)
override;
46 void routePayload(ostringstream
const&,
ErrorObj const&)
override;
53 openlog(
"MF", 0, LOG_LOCAL0);
59 auto const& xid = msg.
xid();
61 << xid.hostaddr() <<
'|' << xid.severity().getName() <<
'|' << xid.id()
62 <<
'|' << xid.application() <<
'|' << xid.pid() <<
'|' 71 string const& usrMsg =
72 !buf.str().compare(0, 1,
"\n") ? buf.str().erase(0, 1) : buf.str();
84 syslog(severity,
"%s", oss.str().data());
107 <<
"ELseverityLevel: " << severity
108 <<
" not currently supported for syslog destination\n";
117 return make_unique<mfplugins::ELsyslog>(pset);
121 CET_PROVIDE_FILE_PATH()
#define LOG_INFO(category)
ELseverityLevel severity() const
virtual void fillUsrMsg(std::ostringstream &, mf::ErrorObj const &msg)
fhicl::TableFragment< ELdestination::Config > elDestConfig
timeval timestamp() const
MAKE_PLUGIN_START(auto, string const &, fhicl::ParameterSet const &pset)
void routePayload(ostringstream const &, ErrorObj const &) override
void fillUsrMsg(ostringstream &, ErrorObj const &) override
void fillPrefix(ostringstream &, ErrorObj const &) override
void fillSuffix(ostringstream &, ErrorObj const &) override
cet::coded_exception< errors::error, detail::translate > Exception
ELextendedID const & xid() const
#define LOG_WARNING(category)
string const & GetIteration()
int syslogLevel(ELseverityLevel)
#define FHICL_PROVIDE_ALLOWED_CONFIGURATION(klass)
MsgFormatSettings format_