Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
mf::service::ELostreamOutput Class Reference

#include <ELostreamOutput.h>

Inheritance diagram for mf::service::ELostreamOutput:
mf::service::ELdestination

Classes

struct  Config
 

Public Types

using Parameters = fhicl::WrappedTable< Config >
 
- Public Types inherited from mf::service::ELdestination
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
 
ELostreamOutputoperator= (ELostreamOutput const &)=delete
 
ELostreamOutputoperator= (ELostreamOutput &&)=delete
 
- Public Member Functions inherited from mf::service::ELdestination
virtual ~ELdestination () noexcept=default
 
 ELdestination (Config const &)
 
 ELdestination (ELdestination const &)=delete
 
 ELdestination (ELdestination &&)=delete
 
ELdestinationoperator= (ELdestination const &)=delete
 
ELdestinationoperator= (ELdestination &&)=delete
 
void setThreshold (ELseverityLevel sv)
 
virtual void log (mf::ErrorObj &)
 
virtual void finish ()
 
virtual void summary ()
 

Private Member Functions

void routePayload (std::ostringstream const &oss, ErrorObj const &msg) override
 

Private Attributes

cet::ostream_handle osh
 
ELextendedID xid {}
 

Additional Inherited Members

- Protected Member Functions inherited from mf::service::ELdestination
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 inherited from mf::service::ELdestination
ELseverityLevel threshold_
 
MsgFormatSettings format_
 
int defaultLimit_
 
int defaultReportEvery_
 
int defaultTimespan_
 
std::map< std::string const, CategoryParamscategoryParams_
 
std::map< ELextendedID const, XidLimiterxidLimiters_
 
std::map< ELextendedID const, StatsCountstatsMap_
 
bool outputStatistics_ {false}
 
bool updatedStats_ {false}
 
bool reset_ {false}
 

Detailed Description

Definition at line 13 of file ELostreamOutput.h.

Member Typedef Documentation

Definition at line 18 of file ELostreamOutput.h.

Constructor & Destructor Documentation

mf::service::ELostreamOutput::~ELostreamOutput ( )
default
mf::service::ELostreamOutput::ELostreamOutput ( Parameters const &  config,
cet::ostream_handle &&  h,
bool  emitAtStart = false 
)

Definition at line 15 of file ELostreamOutput.cc.

18  : ELostreamOutput{ps(), move(h), emitAtStart}
19  {}
def move(depos, offset)
Definition: depos.py:107
static constexpr double ps
Definition: Units.h:99
ELostreamOutput(Parameters const &config, cet::ostream_handle &&, bool emitAtStart=false)
mf::service::ELostreamOutput::ELostreamOutput ( Parameters const &  config,
std::ostream &  os,
bool  emitAtStart = false 
)

Definition at line 9 of file ELostreamOutput.cc.

12  : ELostreamOutput{ps, cet::ostream_handle{os}, emitAtStart}
13  {}
static constexpr double ps
Definition: Units.h:99
ELostreamOutput(Parameters const &config, cet::ostream_handle &&, bool emitAtStart=false)
mf::service::ELostreamOutput::ELostreamOutput ( Config const &  config,
cet::ostream_handle &&  h,
bool  emitAtStart = false 
)

Definition at line 21 of file ELostreamOutput.cc.

25  {
26  if (emitAtStart) {
27  emitToken(
28  osh, "\n=================================================", true, true);
29  emitToken(osh,
30  "\nMessage Log File written by MessageLogger service\n",
31  false,
32  true);
33  emitToken(osh,
34  "\n=================================================\n",
35  true,
36  true);
37  }
38  }
void emitToken(std::ostream &os, std::string const &s, bool nl=false, bool preambleMode=false)
static Config * config
Definition: config.cpp:1054
def move(depos, offset)
Definition: depos.py:107
ELdestination(Config const &)
fhicl::TableFragment< ELdestination::Config > elDestConfig
mf::service::ELostreamOutput::ELostreamOutput ( ELostreamOutput const &  )
delete
mf::service::ELostreamOutput::ELostreamOutput ( ELostreamOutput &&  )
delete

Member Function Documentation

ELostreamOutput& mf::service::ELostreamOutput::operator= ( ELostreamOutput const &  )
delete
ELostreamOutput& mf::service::ELostreamOutput::operator= ( ELostreamOutput &&  )
delete
void mf::service::ELostreamOutput::routePayload ( std::ostringstream const &  oss,
mf::ErrorObj const &  msg 
)
overrideprivatevirtual

Reimplemented from mf::service::ELdestination.

Definition at line 41 of file ELostreamOutput.cc.

42  {
43  osh << oss.str();
44  osh.flush();
45  }

Member Data Documentation

cet::ostream_handle mf::service::ELostreamOutput::osh
private

Definition at line 39 of file ELostreamOutput.h.

ELextendedID mf::service::ELostreamOutput::xid {}
private

Definition at line 40 of file ELostreamOutput.h.


The documentation for this class was generated from the following files: