LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
mf::service::ELdestination::Config Struct Reference

#include "ELdestination.h"

Public Member Functions

 ~Config ()
 
 Config ()
 

Public Attributes

fhicl::Atom< std::string > dest_type
 
fhicl::Atom< std::string > threshold
 
fhicl::Table< MsgFormatSettings::Configformat
 
fhicl::OptionalDelegatedParameter categories
 
fhicl::Atom< bool > outputStatistics
 
fhicl::TableFragment< MsgStatistics::ConfigmsgStatistics
 

Detailed Description

Definition at line 177 of file ELdestination.h.

Constructor & Destructor Documentation

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

Definition at line 238 of file ELdestination.cc.

238 {}
mf::service::ELdestination::Config::Config ( )

Definition at line 240 of file ELdestination.cc.

References categories, format, mf::service::ELdestination::Category::Config::limit_comment(), msgStatistics, outputStatistics, mf::service::ELdestination::Category::Config::reportEvery_comment(), threshold, and mf::service::ELdestination::Category::Config::timespan_comment().

241  : dest_type{fhicl::Name{"type"}}
242  , threshold{fhicl::Name{"threshold"},
244  "The 'threshold' parameter specifies the lowest severity "
245  "level of\n"
246  "messages that will be logged to the destination"},
247  "INFO"}
248  , format{fhicl::Name{"format"}}
249  , categories{fhicl::Name{"categories"},
251  R"(The 'categories' parameter (if provided) is a FHiCL table that
252 configures the behavior of logging to this destination for the specified
253 category. For example, if the following appears in C++ source code:
254 
255  mf::LogInfo{"Tracking"} << my_track.diagnostics();
256 
257 the category is 'Tracking', and its behavior can be specified via:
258 
259  categories: {
260  Tracking: {
261  limit: -1 # default
262  reportEvery: -1 # default
263  timespan: -1 # default
264  }
265  }
266 
267 Within the 'categories' table, it is permitted to specify a 'default'
268 category, which becomes the configuration for all message categories
269 that are not explicitly listed.
270 
271 Note the categories listed only customize the behavior of messages
272 that are logged specifically to this destination. Messages that are
273 routed to other destinations are not be affected.
274 
275 Category parameters
276 ===================
277 
279  "\n\n" + Category::Config::reportEvery_comment() + "\n\n" +
281  , outputStatistics{fhicl::Name{"outputStatistics"}, false}
282  , msgStatistics{}
283  {}
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 183 of file ELdestination.h.

Referenced by Config().

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

Definition at line 180 of file ELdestination.h.

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

Definition at line 182 of file ELdestination.h.

Referenced by Config().

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

Definition at line 185 of file ELdestination.h.

Referenced by Config().

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

Definition at line 184 of file ELdestination.h.

Referenced by Config().

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

Definition at line 181 of file ELdestination.h.

Referenced by Config(), and mf::service::ELdestination::ELdestination().


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