Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mf::service::ELdestination::Category::Config Struct Reference

#include <ELdestination.h>

Public Member Functions

 ~Config ()
 
 Config ()
 
 Config (fhicl::ParameterSet const &pset)
 

Static Public Member Functions

static std::string limit_comment ()
 
static std::string reportEvery_comment ()
 
static std::string timespan_comment ()
 

Public Attributes

fhicl::Atom< int > limit {fhicl::Name{"limit"}, -1}
 
fhicl::Atom< int > reportEvery {fhicl::Name{"reportEvery"}, -1}
 
fhicl::Atom< int > timespan {fhicl::Name{"timespan"}, -1}
 

Detailed Description

Definition at line 42 of file ELdestination.h.

Constructor & Destructor Documentation

mf::service::ELdestination::Category::Config::~Config ( )
default
mf::service::ELdestination::Category::Config::Config ( void  )

Definition at line 38 of file ELdestination.cc.

39  : limit{fhicl::Name{"limit"}, -1}
40  , reportEvery{fhicl::Name{"reportEvery"}, -1}
41  , timespan{fhicl::Name{"timespan"}, -1}
42  {}
mf::service::ELdestination::Category::Config::Config ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 44 of file ELdestination.cc.

45  : limit{fhicl::Name{"limit"}, pset.get<int>("limit", -1)}
46  , reportEvery{fhicl::Name{"reportEvery"}, pset.get<int>("reportEvery", -1)}
47  , timespan{fhicl::Name{"timespan"}, pset.get<int>("timespan", -1)}
48  {}

Member Function Documentation

std::string mf::service::ELdestination::Category::Config::limit_comment ( )
static

Definition at line 51 of file ELdestination.cc.

52  {
53  return R"(The 'limit' parameter is an integer after which the logger will start
54 to ignore messages of this category. Beyond the specified limit, an
55 occasional further message will appear, based on an exponential
56 fall-off. For example, if the limit is set to 5, and 100 messages of
57 this category are issued, then the destination containing this
58 configuration will log messages numbered 1, 2, 3, 4, 5, 10, 15, 25,
59 45, and 85. A limit of zero disables reporting any messages.)";
60  }
std::string mf::service::ELdestination::Category::Config::reportEvery_comment ( )
static

Definition at line 63 of file ELdestination.cc.

64  {
65  return R"(The 'reportEvery' parameter is an integer n which logs only every nth
66 message. If the value is zero or less, then the report-every feature
67 is disabled.)";
68  }
std::string mf::service::ELdestination::Category::Config::timespan_comment ( )
static

Definition at line 71 of file ELdestination.cc.

72  {
73  return R"(The 'timespan' parameter is an integer representing seconds. When a
74 limit is set, one can also specify that if no occurrences for that
75 particular category of messages have been seen in a period of time
76 (the timespan), then the count toward that limit is to be reset. For
77 example, if one wish to suppress most of the thousands of warnings of
78 some category expected at startup, but would like to know if another
79 one happens after a gap of ten minutes, one can set the timespan value
80 to 600. A value of zero or less disables the timespan functionality.)";
81  }

Member Data Documentation

fhicl::Atom<int> mf::service::ELdestination::Category::Config::limit {fhicl::Name{"limit"}, -1}

Definition at line 51 of file ELdestination.h.

fhicl::Atom<int> mf::service::ELdestination::Category::Config::reportEvery {fhicl::Name{"reportEvery"}, -1}

Definition at line 52 of file ELdestination.h.

fhicl::Atom<int> mf::service::ELdestination::Category::Config::timespan {fhicl::Name{"timespan"}, -1}

Definition at line 53 of file ELdestination.h.


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