41 void fillPrefix(ostringstream&,
ErrorObj const&)
override;
42 void fillUsrMsg(ostringstream&,
ErrorObj const&)
override;
43 void fillSuffix(ostringstream&,
ErrorObj const&)
override;
44 void routePayload(ostringstream
const&,
ErrorObj const&)
override;
51 openlog(
"MF", 0, LOG_LOCAL0);
57 auto const& xid = msg.
xid();
59 << xid.hostaddr() <<
'|' << xid.severity().getName() <<
'|' << xid.id()
60 <<
'|' << xid.application() <<
'|' << xid.pid() <<
'|' 69 string const& usrMsg =
70 !buf.str().compare(0, 1,
"\n") ? buf.str().erase(0, 1) : buf.str();
82 syslog(severity,
"%s", oss.str().data());
105 <<
"ELseverityLevel: " << severity
106 <<
" not currently supported for syslog destination\n";
115 return make_unique<mfplugins::ELsyslog>(pset);
#define LOG_DEBUG(stream)
ELseverityLevel severity() const
virtual void fillUsrMsg(std::ostringstream &, mf::ErrorObj const &msg)
fhicl::TableFragment< ELdestination::Config > elDestConfig
void msg(const char *fmt,...)
timeval timestamp() const
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
MAKE_MFPLUGIN_START(, pset)
string const & GetIteration()
int syslogLevel(ELseverityLevel)
#define FHICL_PROVIDE_ALLOWED_CONFIGURATION(klass)
MsgFormatSettings format_