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

#include <ELdestination.h>

Public Member Functions

 ~Config ()
 
 Config ()
 

Public Attributes

fhicl::Atom< std::stringdest_type
 
fhicl::Atom< std::stringthreshold
 
fhicl::Table< MsgFormatSettings::Configformat
 
fhicl::OptionalDelegatedParameter categories
 
fhicl::Atom< booloutputStatistics
 
fhicl::TableFragment< MsgStatistics::ConfigmsgStatistics
 

Detailed Description

Definition at line 152 of file ELdestination.h.

Constructor & Destructor Documentation

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

Definition at line 227 of file ELdestination.cc.

228  : dest_type{fhicl::Name{"type"}}
229  , threshold{fhicl::Name{"threshold"},
231  "The 'threshold' parameter specifies the lowest severity "
232  "level of\n"
233  "messages that will be logged to the destination"},
234  "INFO"}
235  , format{fhicl::Name{"format"}}
236  , categories{fhicl::Name{"categories"},
238  R"(The 'categories' parameter (if provided) is a FHiCL table that
239 configures the behavior of logging to this destination for the specified
240 category. For example, if the following appears in C++ source code:
241 
242  mf::LogInfo{"Tracking"} << my_track.diagnostics();
243 
244 the category is 'Tracking', and its behavior can be specified via:
245 
246  categories: {
247  Tracking: {
248  limit: -1 # default
249  reportEvery: -1 # default
250  timespan: -1 # default
251  }
252  }
253 
254 Within the 'categories' table, it is permitted to specify a 'default'
255 category, which becomes the configuration for all message categories
256 that are not explicitly listed.
257 
258 Note the categories listed only customize the behavior of messages
259 that are logged specifically to this destination. Messages that are
260 routed to other destinations are not be affected.
261 
262 Category parameters
263 ===================
264 
266  "\n\n" + Category::Config::reportEvery_comment() + "\n\n" +
268  , outputStatistics{fhicl::Name{"outputStatistics"}, false}
269  , msgStatistics{}
270  {}
fhicl::Table< MsgFormatSettings::Config > format
fhicl::TableFragment< MsgStatistics::Config > msgStatistics
fhicl::OptionalDelegatedParameter categories
fhicl::Atom< std::string > dest_type
fhicl::Atom< std::string > threshold
fhicl::Atom< bool > outputStatistics

Member Data Documentation

fhicl::OptionalDelegatedParameter mf::service::ELdestination::Config::categories

Definition at line 158 of file ELdestination.h.

fhicl::Atom<std::string> mf::service::ELdestination::Config::dest_type

Definition at line 155 of file ELdestination.h.

fhicl::Table<MsgFormatSettings::Config> mf::service::ELdestination::Config::format

Definition at line 157 of file ELdestination.h.

fhicl::TableFragment<MsgStatistics::Config> mf::service::ELdestination::Config::msgStatistics

Definition at line 160 of file ELdestination.h.

fhicl::Atom<bool> mf::service::ELdestination::Config::outputStatistics

Definition at line 159 of file ELdestination.h.

fhicl::Atom<std::string> mf::service::ELdestination::Config::threshold

Definition at line 156 of file ELdestination.h.


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