CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
edm::service::MessageLoggerDefaults Struct Reference

#include <MessageLoggerDefaults.h>

Classes

struct  Category
 
struct  Destination
 

Public Member Functions

void hardwireAnalysisJobMode ()
 
void hardwireGridJobMode ()
 
void hardwireNilJobMode ()
 
void hardwireReleaseValidationJobMode ()
 
int limit (std::string const &dest, std::string const &cat)
 
 MessageLoggerDefaults (edm::JobMode mode=GridJobMode)
 
std::string output (std::string const &dest)
 
int reportEvery (std::string const &dest, std::string const &cat)
 
int sev_limit (std::string const &dest, std::string const &sev)
 
int sev_reportEvery (std::string const &dest, std::string const &sev)
 
int sev_timespan (std::string const &dest, std::string const &sev)
 
std::string threshold (std::string const &dest)
 
int timespan (std::string const &dest, std::string const &cat)
 

Static Public Member Functions

static edm::JobMode mode (std::string const &jm)
 

Public Attributes

std::vector< std::string > categories
 
std::map< std::string,
Destination
destination
 
std::vector< std::string > destinations
 
std::vector< std::string > fwkJobReports
 
std::vector< std::string > statistics
 

Static Public Attributes

static const int NO_VALUE_SET = -45654
 

Detailed Description

Definition at line 70 of file MessageLoggerDefaults.h.

Constructor & Destructor Documentation

edm::service::MessageLoggerDefaults::MessageLoggerDefaults ( edm::JobMode  mode = GridJobMode)
inlineexplicit

Definition at line 125 of file MessageLoggerDefaults.h.

References edm::AnalysisJobMode, edm::GridJobMode, hardwireAnalysisJobMode(), hardwireGridJobMode(), hardwireNilJobMode(), hardwireReleaseValidationJobMode(), mode(), edm::NilJobMode, and edm::ReleaseValidationJobMode.

125  {
126  // mode-independent defaults
127 
128  // mode-dependent defaults
129  switch (mode) {
130  // GridJobMode: Intended for automated batch-like processing, in which
131  // the output stream for cerr is routed to an apropro
132  // file. LogInfo messages are enabled, and at least
133  // one such message is delivered from the framework per
134  // event, so this mode is not suitable for many-Hz light
135  // event processing.
136  case GridJobMode:
138  break;
141  break;
142  case AnalysisJobMode:
144  break;
145  case NilJobMode:
147  break;
148  default:
149  // this should never happen! No user error can get here.
150  bool Invalid_JobMode_in_ctor_of_MessageLoggerDefaults = false;
151  assert (Invalid_JobMode_in_ctor_of_MessageLoggerDefaults);
152  } // end of switch on mode
153  }
static edm::JobMode mode(std::string const &jm)

Member Function Documentation

void MessageLoggerDefaults::hardwireAnalysisJobMode ( )

Definition at line 155 of file HardwiredDefaults.cc.

References categories, edm::service::MessageLoggerDefaults::Destination::category, dtNoiseDBValidation_cfg::cerr, destination, destinations, edm::service::MessageLoggerDefaults::Category::limit, edm::service::MessageLoggerDefaults::Category::reportEvery, edm::service::MessageLoggerDefaults::Destination::sev, statistics, edm::service::MessageLoggerDefaults::Destination::threshold, and benchmark_cfg::warnings.

Referenced by MessageLoggerDefaults().

156 {
157  // std::cerr << " ======= hardwireAnalysisJobMode() \n";
158  destinations.push_back ( "warnings" );
159  categories.push_back ( "FwkJob" );
160  categories.push_back ( "FwkReport" );
161  categories.push_back ( "FwkSummary" );
162  categories.push_back ( "Root_NoDictionary" );
163  statistics.push_back ( "cerr" );
164  // cerr destination -
165  // note that using the name cerr is OK since it is not std::cerr
166  // but when we want to use default as a name, we have to be circumspect
167  { Destination warnings; // PSet warnings
168  warnings.threshold = "INFO"; // string threshold = "INFO"
169  Category INFO_limits; // PSet INFO = { ... }
170  INFO_limits.limit = 0; // int32 limit = 0
171  warnings.sev["INFO"] = INFO_limits;
172  Category default_for_dest; // PSet default
173  default_for_dest.limit = 1000 ; // int32 limit = 1000
174  warnings.category["default"] = default_for_dest;
175  Category FwkReport; // PSet FwkReport
176  FwkReport.limit = 10000000; // int32 limit = 10000000
177  FwkReport.reportEvery = 100; // int32 reportEvery = 100
178  warnings.category["FwkReport"] = FwkReport;
179  Category FwkSummary; // PSet FwkSummary
180  FwkSummary.limit = 10000000; // int32 limit = 10000000
181  warnings.category["FwkSummary"] = FwkSummary;
182  Category FwkJob; // PSet FwkJob
183  FwkJob.limit = 0; // int32 limit = 0
184  warnings.category["FwkJob"] = FwkJob;
185  Category Root_NoDictionary; // PSet Root_NoDictionary
186  Root_NoDictionary.limit = 0; // int32 limit = 0
187  warnings.category["Root_NoDictionary"] = Root_NoDictionary;
188  destination["warnings"] = warnings;
189  }
190  { Destination cerr; // PSet cerr
191  cerr.threshold = "INFO"; // string threshold = "INFO"
192  destination["cerr"] = cerr;
193  }
194 } // hardwireAnalysisJobMode
std::vector< std::string > statistics
std::vector< std::string > destinations
std::map< std::string, Destination > destination
std::vector< std::string > categories
void MessageLoggerDefaults::hardwireGridJobMode ( )

Definition at line 47 of file HardwiredDefaults.cc.

References categories, edm::service::MessageLoggerDefaults::Destination::category, dtNoiseDBValidation_cfg::cerr, benchmark_cfg::cerr_stats, destination, destinations, benchmark_cfg::FrameworkJobReport, edm::service::MessageLoggerDefaults::Category::limit, edm::service::MessageLoggerDefaults::Destination::output, edm::service::MessageLoggerDefaults::Category::reportEvery, edm::service::MessageLoggerDefaults::Destination::sev, statistics, and edm::service::MessageLoggerDefaults::Destination::threshold.

Referenced by MessageLoggerDefaults().

48 {
49  // std::cerr << " ======= hardwireGridJobMode() \n";
50  destinations.push_back ( "cerr" );
51  categories.push_back ( "FwkJob" );
52  categories.push_back ( "FwkReport" );
53  categories.push_back ( "FwkSummary" );
54  categories.push_back ( "Root_NoDictionary" );
55  statistics.push_back ( "cerr_stats" );
56  // cerr destination -
57  // note that using the name cerr is OK since it is not std::cerr
58  // but when we want to use default as a name, we have to be circumspect
59  { Destination cerr; // PSet cerr
60  cerr.threshold = "INFO"; // string threshold = "INFO"
61  Category INFO_limits; // PSet INFO = { ... }
62  INFO_limits.limit = 0; // int32 limit = 0
63  cerr.sev["INFO"] = INFO_limits;
64  Category default_for_dest; // PSet default
65  default_for_dest.limit = 10000000; // int32 limit = 10000000
66  cerr.category["default"] = default_for_dest;
67  Category FwkReport; // PSet FwkReport
68  FwkReport.limit = 10000000; // int32 limit = 10000000
69  FwkReport.reportEvery = 1; // int32 reportEvery = 1
70  cerr.category["FwkReport"] = FwkReport;
71  Category FwkSummary; // PSet FwkSummary
72  FwkSummary.limit = 10000000; // int32 limit = 10000000
73  FwkSummary.reportEvery = 1; // int32 reportEvery = 1
74  cerr.category["FwkSummary"] = FwkSummary;
75  Category FwkJob; // PSet FwkJob
76  FwkJob.limit = 0; // int32 limit = 0
77  cerr.category["FwkJob"] = FwkJob;
78  Category Root_NoDictionary; // PSet Root_NoDictionary
79  Root_NoDictionary.limit = 0; // int32 limit = 0
80  cerr.category["Root_NoDictionary"] = Root_NoDictionary;
81  destination["cerr"] = cerr;
82  }
83  { Destination FrameworkJobReport; // PSet FrameworkJobReport
84  Category default_for_dest; // PSet default
85  default_for_dest.limit = 0; // int32 limit = 0
86  FrameworkJobReport.category["default"] = default_for_dest;
87  Category FwkJob; // PSet FwkJob
88  FwkJob.limit = 10000000; // int32 limit = 10000000
89  FrameworkJobReport.category["FwkJob"] = FwkJob;
90  destination["FrameworkJobReport"] = FrameworkJobReport;
91  }
92  { Destination cerr_stats; // PSet cerr_stats
93  cerr_stats.threshold = "WARNING"; // string threshold = "WARNING"
94  cerr_stats.output = "cerr"; // string output = "cerr"
95  destination["cerr_stats"] = cerr_stats;
96  }
97 
98 } // hardwireGridJobMode
tuple FrameworkJobReport
std::vector< std::string > statistics
std::vector< std::string > destinations
std::map< std::string, Destination > destination
std::vector< std::string > categories
void MessageLoggerDefaults::hardwireNilJobMode ( )

Definition at line 197 of file HardwiredDefaults.cc.

Referenced by MessageLoggerDefaults().

198 {
199  // std::cerr << " ======= hardwireNilJobMode() \n";
200 } // hardwireNilJobMode
void MessageLoggerDefaults::hardwireReleaseValidationJobMode ( )

Definition at line 101 of file HardwiredDefaults.cc.

References categories, edm::service::MessageLoggerDefaults::Destination::category, dtNoiseDBValidation_cfg::cerr, benchmark_cfg::cerr_stats, destination, destinations, benchmark_cfg::FrameworkJobReport, edm::service::MessageLoggerDefaults::Category::limit, edm::service::MessageLoggerDefaults::Destination::output, edm::service::MessageLoggerDefaults::Category::reportEvery, edm::service::MessageLoggerDefaults::Destination::sev, statistics, and edm::service::MessageLoggerDefaults::Destination::threshold.

Referenced by MessageLoggerDefaults().

102 {
103  // std::cerr << " ======= hardwireReleaseValidationJobMode() \n";
104  destinations.push_back ( "cerr" );
105  categories.push_back ( "FwkJob" );
106  categories.push_back ( "FwkReport" );
107  categories.push_back ( "FwkSummary" );
108  categories.push_back ( "Root_NoDictionary" );
109  statistics.push_back ( "cerr_stats" );
110  // cerr destination -
111  // note that using the name cerr is OK since it is not std::cerr
112  // but when we want to use default as a name, we have to be circumspect
113  { Destination cerr; // PSet cerr
114  cerr.threshold = "INFO"; // string threshold = "INFO"
115  Category INFO_limits; // PSet INFO = { ... }
116  INFO_limits.limit = 5; // int32 limit = 5
117  cerr.sev["INFO"] = INFO_limits;
118  Category default_for_dest; // PSet default
119  default_for_dest.limit = 10000000; // int32 limit = 10000000
120  cerr.category["default"] = default_for_dest;
121  Category FwkReport; // PSet FwkReport
122  FwkReport.limit = 10000000; // int32 limit = 10000000
123  FwkReport.reportEvery = 1; // int32 reportEvery = 1
124  cerr.category["FwkReport"] = FwkReport;
125  Category FwkSummary; // PSet FwkSummary
126  FwkSummary.limit = 10000000; // int32 limit = 10000000
127  FwkSummary.reportEvery = 1; // int32 reportEvery = 1
128  cerr.category["FwkSummary"] = FwkSummary;
129  Category FwkJob; // PSet FwkJob
130  FwkJob.limit = 0; // int32 limit = 0
131  cerr.category["FwkJob"] = FwkJob;
132  Category Root_NoDictionary; // PSet Root_NoDictionary
133  Root_NoDictionary.limit = 0; // int32 limit = 0
134  cerr.category["Root_NoDictionary"] = Root_NoDictionary;
135  destination["cerr"] = cerr;
136  }
137  { Destination FrameworkJobReport; // PSet FrameworkJobReport
138  Category default_for_dest; // PSet default
139  default_for_dest.limit = 0; // int32 limit = 0
140  FrameworkJobReport.category["default"] = default_for_dest;
141  Category FwkJob; // PSet FwkJob
142  FwkJob.limit = 10000000; // int32 limit = 10000000
143  FrameworkJobReport.category["FwkJob"] = FwkJob;
144  destination["FrameworkJobReport"] = FrameworkJobReport;
145  }
146  { Destination cerr_stats; // PSet cerr_stats
147  cerr_stats.threshold = "INFO"; // string threshold = "INFO"
148  cerr_stats.output = "cerr"; // string output = "cerr"
149  destination["cerr_stats"] = cerr_stats;
150  }
151 
152 } // hardwireReleaseValidationJobMode
tuple FrameworkJobReport
std::vector< std::string > statistics
std::vector< std::string > destinations
std::map< std::string, Destination > destination
std::vector< std::string > categories
int MessageLoggerDefaults::limit ( std::string const &  dest,
std::string const &  cat 
)

Definition at line 62 of file MessageLoggerDefaults.cc.

References trackerHits::c, edm::service::MessageLoggerDefaults::Destination::category, createTree::dd, destination, and NO_VALUE_SET.

63 {
64  int lim = NO_VALUE_SET;
65  std::map<std::string,Destination>::iterator d = destination.find(dest);
66  if (d != destination.end()) {
67  Destination & destin = d->second;
68  std::map<std::string,Category>::iterator c = destin.category.find(cat);
69  if (c != destin.category.end()) {
70  lim = c->second.limit;
71  }
72  }
73  std::map<std::string,Destination>::iterator dd = destination.find("default");
74  if ( lim == NO_VALUE_SET ) {
75  if (dd != destination.end()) {
76  Destination & def_destin = dd->second;
77  std::map<std::string,Category>::iterator
78  c = def_destin.category.find(cat);
79  if (c != def_destin.category.end()) {
80  lim = c->second.limit;
81  }
82  }
83  }
84  if ( lim == NO_VALUE_SET ) {
85  if (d != destination.end()) {
86  Destination & destin = d->second;
87  std::map<std::string,Category>::iterator
88  cd = destin.category.find("default");
89  if (cd != destin.category.end()) {
90  lim = cd->second.limit;
91  }
92  }
93  }
94  if ( lim == NO_VALUE_SET ) {
95  if (dd != destination.end()) {
96  Destination & def_destin = dd->second;
97  std::map<std::string,Category>::iterator
98  cdd = def_destin.category.find("default");
99  if (cdd != def_destin.category.end()) {
100  lim = cdd->second.limit;
101  }
102  }
103  }
104  return lim;
105 } // limit
std::map< std::string, Destination > destination
edm::JobMode MessageLoggerDefaults::mode ( std::string const &  jm)
static

Definition at line 34 of file HardwiredDefaults.cc.

References edm::AnalysisJobMode, dtNoiseDBValidation_cfg::cerr, edm::GridJobMode, edm::NilJobMode, and edm::ReleaseValidationJobMode.

Referenced by MessageLoggerDefaults(), and edm::service::MessageLoggerScribe::runCommand().

35 {
36  if (jm == "") return GridJobMode; // no -mode option = grid
37  if (jm == "grid") return GridJobMode;
38  if (jm == "infos") return ReleaseValidationJobMode;
39  if (jm == "analysis") return AnalysisJobMode;
40  if (jm == "nil") return NilJobMode;
41  std::cerr << "Unrecognized Job Mode Option: " << jm
42  << " -- defaulting to analysis mode ";
43  return AnalysisJobMode;
44 }
std::string MessageLoggerDefaults::output ( std::string const &  dest)

Definition at line 48 of file MessageLoggerDefaults.cc.

References destination, and edm::service::MessageLoggerDefaults::Destination::output.

49 {
50  std::string otpt = "";
51  std::map<std::string,Destination>::iterator d = destination.find(dest);
52  if (d != destination.end()) {
53  Destination & destin = d->second;
54  otpt = destin.output;
55  }
56  // There is no default output; so if we did not find the dest, then return ""
57  return otpt;
58 } // output
std::map< std::string, Destination > destination
int MessageLoggerDefaults::reportEvery ( std::string const &  dest,
std::string const &  cat 
)

Definition at line 109 of file MessageLoggerDefaults.cc.

References trackerHits::c, edm::service::MessageLoggerDefaults::Destination::category, createTree::dd, destination, and NO_VALUE_SET.

110 {
111  int re = NO_VALUE_SET;
112  std::map<std::string,Destination>::iterator d = destination.find(dest);
113  if (d != destination.end()) {
114  Destination & destin = d->second;
115  std::map<std::string,Category>::iterator c = destin.category.find(cat);
116  if (c != destin.category.end()) {
117  re = c->second.reportEvery;
118  }
119  }
120  std::map<std::string,Destination>::iterator dd = destination.find("default");
121  if ( re == NO_VALUE_SET ) {
122  if (dd != destination.end()) {
123  Destination & def_destin = dd->second;
124  std::map<std::string,Category>::iterator
125  c = def_destin.category.find(cat);
126  if (c != def_destin.category.end()) {
127  re = c->second.reportEvery;
128  }
129  }
130  }
131  if ( re == NO_VALUE_SET ) {
132  if (d != destination.end()) {
133  Destination & destin = d->second;
134  std::map<std::string,Category>::iterator
135  cd = destin.category.find("default");
136  if (cd != destin.category.end()) {
137  re = cd->second.reportEvery;
138  }
139  }
140  }
141  if ( re == NO_VALUE_SET ) {
142  if (dd != destination.end()) {
143  Destination & def_destin = dd->second;
144  std::map<std::string,Category>::iterator
145  cdd = def_destin.category.find("default");
146  if (cdd != def_destin.category.end()) {
147  re = cdd->second.reportEvery;
148  }
149  }
150  }
151  return re;
152 } // reportEvery
std::map< std::string, Destination > destination
int MessageLoggerDefaults::sev_limit ( std::string const &  dest,
std::string const &  sev 
)

Definition at line 203 of file MessageLoggerDefaults.cc.

References trackerHits::c, createTree::dd, destination, NO_VALUE_SET, and edm::service::MessageLoggerDefaults::Destination::sev.

204 {
205  int lim = NO_VALUE_SET;
206  std::map<std::string,Destination>::iterator d = destination.find(dest);
207  if (d != destination.end()) {
208  Destination & destin = d->second;
209  std::map<std::string,Category>::iterator c = destin.sev.find(cat);
210  if (c != destin.sev.end()) {
211  lim = c->second.limit;
212  }
213  }
214  std::map<std::string,Destination>::iterator dd = destination.find("default");
215  if ( lim == NO_VALUE_SET ) {
216  if (dd != destination.end()) {
217  Destination & def_destin = dd->second;
218  std::map<std::string,Category>::iterator
219  c = def_destin.sev.find(cat);
220  if (c != def_destin.sev.end()) {
221  lim = c->second.limit;
222  }
223  }
224  }
225  if ( lim == NO_VALUE_SET ) {
226  if (d != destination.end()) {
227  Destination & destin = d->second;
228  std::map<std::string,Category>::iterator
229  cd = destin.sev.find("default");
230  if (cd != destin.sev.end()) {
231  lim = cd->second.limit;
232  }
233  }
234  }
235  if ( lim == NO_VALUE_SET ) {
236  if (dd != destination.end()) {
237  Destination & def_destin = dd->second;
238  std::map<std::string,Category>::iterator
239  cdd = def_destin.sev.find("default");
240  if (cdd != def_destin.sev.end()) {
241  lim = cdd->second.limit;
242  }
243  }
244  }
245  return lim;
246 } // sev_limit
std::map< std::string, Destination > destination
int MessageLoggerDefaults::sev_reportEvery ( std::string const &  dest,
std::string const &  sev 
)

Definition at line 250 of file MessageLoggerDefaults.cc.

References trackerHits::c, createTree::dd, destination, NO_VALUE_SET, and edm::service::MessageLoggerDefaults::Destination::sev.

251 {
252  int re = NO_VALUE_SET;
253  std::map<std::string,Destination>::iterator d = destination.find(dest);
254  if (d != destination.end()) {
255  Destination & destin = d->second;
256  std::map<std::string,Category>::iterator c = destin.sev.find(cat);
257  if (c != destin.sev.end()) {
258  re = c->second.reportEvery;
259  }
260  }
261  std::map<std::string,Destination>::iterator dd = destination.find("default");
262  if ( re == NO_VALUE_SET ) {
263  if (dd != destination.end()) {
264  Destination & def_destin = dd->second;
265  std::map<std::string,Category>::iterator
266  c = def_destin.sev.find(cat);
267  if (c != def_destin.sev.end()) {
268  re = c->second.reportEvery;
269  }
270  }
271  }
272  if ( re == NO_VALUE_SET ) {
273  if (d != destination.end()) {
274  Destination & destin = d->second;
275  std::map<std::string,Category>::iterator
276  cd = destin.sev.find("default");
277  if (cd != destin.sev.end()) {
278  re = cd->second.reportEvery;
279  }
280  }
281  }
282  if ( re == NO_VALUE_SET ) {
283  if (dd != destination.end()) {
284  Destination & def_destin = dd->second;
285  std::map<std::string,Category>::iterator
286  cdd = def_destin.sev.find("default");
287  if (cdd != def_destin.sev.end()) {
288  re = cdd->second.reportEvery;
289  }
290  }
291  }
292  return re;
293 } // sev_reportEvery
std::map< std::string, Destination > destination
int MessageLoggerDefaults::sev_timespan ( std::string const &  dest,
std::string const &  sev 
)

Definition at line 297 of file MessageLoggerDefaults.cc.

References trackerHits::c, createTree::dd, destination, NO_VALUE_SET, and edm::service::MessageLoggerDefaults::Destination::sev.

298 {
299  int tim = NO_VALUE_SET;
300  std::map<std::string,Destination>::iterator d = destination.find(dest);
301  if (d != destination.end()) {
302  Destination & destin = d->second;
303  std::map<std::string,Category>::iterator c = destin.sev.find(cat);
304  if (c != destin.sev.end()) {
305  tim = c->second.timespan;
306  }
307  }
308  std::map<std::string,Destination>::iterator dd = destination.find("default");
309  if ( tim == NO_VALUE_SET ) {
310  if (dd != destination.end()) {
311  Destination & def_destin = dd->second;
312  std::map<std::string,Category>::iterator
313  c = def_destin.sev.find(cat);
314  if (c != def_destin.sev.end()) {
315  tim = c->second.timespan;
316  }
317  }
318  }
319  if ( tim == NO_VALUE_SET ) {
320  if (d != destination.end()) {
321  Destination & destin = d->second;
322  std::map<std::string,Category>::iterator
323  cd = destin.sev.find("default");
324  if (cd != destin.sev.end()) {
325  tim = cd->second.timespan;
326  }
327  }
328  }
329  if ( tim == NO_VALUE_SET ) {
330  if (dd != destination.end()) {
331  Destination & def_destin = dd->second;
332  std::map<std::string,Category>::iterator
333  cdd = def_destin.sev.find("default");
334  if (cdd != def_destin.sev.end()) {
335  tim = cdd->second.timespan;
336  }
337  }
338  }
339  return tim;
340 } // sev_timespan
std::map< std::string, Destination > destination
std::string MessageLoggerDefaults::threshold ( std::string const &  dest)

Definition at line 28 of file MessageLoggerDefaults.cc.

References createTree::dd, destination, and edm::service::MessageLoggerDefaults::Destination::threshold.

29 {
30  std::string thr = "";
31  std::map<std::string,Destination>::iterator d = destination.find(dest);
32  if (d != destination.end()) {
33  Destination & destin = d->second;
34  thr = destin.threshold;
35  }
36  std::map<std::string,Destination>::iterator dd = destination.find("default");
37  if ( thr == "" ) {
38  if (dd != destination.end()) {
39  Destination & def_destin = dd->second;
40  thr = def_destin.threshold;
41  }
42  }
43  return thr;
44 } // threshold
std::map< std::string, Destination > destination
int MessageLoggerDefaults::timespan ( std::string const &  dest,
std::string const &  cat 
)

Definition at line 156 of file MessageLoggerDefaults.cc.

References trackerHits::c, edm::service::MessageLoggerDefaults::Destination::category, createTree::dd, destination, and NO_VALUE_SET.

157 {
158  int tim = NO_VALUE_SET;
159  std::map<std::string,Destination>::iterator d = destination.find(dest);
160  if (d != destination.end()) {
161  Destination & destin = d->second;
162  std::map<std::string,Category>::iterator c = destin.category.find(cat);
163  if (c != destin.category.end()) {
164  tim = c->second.timespan;
165  }
166  }
167  std::map<std::string,Destination>::iterator dd = destination.find("default");
168  if ( tim == NO_VALUE_SET ) {
169  if (dd != destination.end()) {
170  Destination & def_destin = dd->second;
171  std::map<std::string,Category>::iterator
172  c = def_destin.category.find(cat);
173  if (c != def_destin.category.end()) {
174  tim = c->second.timespan;
175  }
176  }
177  }
178  if ( tim == NO_VALUE_SET ) {
179  if (d != destination.end()) {
180  Destination & destin = d->second;
181  std::map<std::string,Category>::iterator
182  cd = destin.category.find("default");
183  if (cd != destin.category.end()) {
184  tim = cd->second.timespan;
185  }
186  }
187  }
188  if ( tim == NO_VALUE_SET ) {
189  if (dd != destination.end()) {
190  Destination & def_destin = dd->second;
191  std::map<std::string,Category>::iterator
192  cdd = def_destin.category.find("default");
193  if (cdd != def_destin.category.end()) {
194  tim = cdd->second.timespan;
195  }
196  }
197  }
198  return tim;
199 } // timespan
std::map< std::string, Destination > destination

Member Data Documentation

std::vector<std::string> edm::service::MessageLoggerDefaults::categories
std::map<std::string,Destination> edm::service::MessageLoggerDefaults::destination
std::vector<std::string> edm::service::MessageLoggerDefaults::destinations
std::vector<std::string> edm::service::MessageLoggerDefaults::fwkJobReports

Definition at line 97 of file MessageLoggerDefaults.h.

const int edm::service::MessageLoggerDefaults::NO_VALUE_SET = -45654
static
std::vector<std::string> edm::service::MessageLoggerDefaults::statistics