CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
edm::service::ELoutput Class Reference

#include <ELoutput.h>

Inheritance diagram for edm::service::ELoutput:
edm::service::ELdestination

Public Member Functions

 ELoutput ()
 
 ELoutput (const ELoutput &orig)
 
 ELoutput (const std::string &fileName, bool emitAtStart=false)
 
 ELoutput (std::ostream &os, bool emitAtStart=false)
 
bool log (const edm::ErrorObj &msg) override
 
 ~ELoutput () override
 
- Public Member Functions inherited from edm::service::ELdestination
 ELdestination ()
 
virtual void excludeModule (std::string const &moduleName)
 
virtual void filterModule (std::string const &moduleName)
 
virtual void finish ()
 
virtual int getLineLength () const
 
virtual std::string getNewline () const
 
virtual void ignoreModule (std::string const &moduleName)
 
virtual void respondToModule (std::string const &moduleName)
 
void setInterval (const ELseverityLevel &sv, int interval)
 
void setInterval (const std::string &s, int interval)
 
void setLimit (const ELseverityLevel &sv, int n)
 
void setLimit (const std::string &s, int n)
 
virtual int setLineLength (int len)
 
virtual void setTableLimit (int n)
 
void setThreshold (const ELseverityLevel &sv)
 
void setTimespan (const ELseverityLevel &sv, int n)
 
void setTimespan (const std::string &s, int n)
 
void setTraceThreshold (const ELseverityLevel &sv)
 
virtual bool thisShouldBeIgnored (std::string const &s) const
 
virtual void wipe ()
 
virtual void zero ()
 
virtual ~ELdestination ()
 

Protected Member Functions

void attachEpilogue () override
 
void attachTime () override
 
void changeFile (const std::string &filename) override
 
void changeFile (std::ostream &os) override
 
void emitToken (std::string_view s, bool nl=false)
 
void flush () override
 
void includeContext () override
 
void includeModule () override
 
void includeSerial () override
 
void includeSubroutine () override
 
void includeText () override
 
void includeTime () override
 
ELoutputoperator= (const ELoutput &orig)=delete
 
void separateEpilogue () override
 
void separateTime () override
 
void suppressContext () override
 
void suppressModule () override
 
void suppressSerial () override
 
void suppressSubroutine () override
 
void suppressText () override
 
void suppressTime () override
 
void useContext () override
 
void useFullContext () override
 

Protected Attributes

int charsOnLine
 
std::shared_ptr< std::ostream > os
 
bool preambleMode
 
bool wantEpilogueSeparate
 
bool wantFullContext
 
bool wantModule
 
bool wantSerial
 
bool wantSomeContext
 
bool wantSubroutine
 
bool wantText
 
bool wantTimeSeparate
 
bool wantTimestamp
 
edm::ELextendedID xid
 
- Protected Attributes inherited from edm::service::ELdestination
bool ignoreMostModules
 
std::unordered_set< std::string > ignoreThese
 
std::string indent
 
ELlimitsTable limits
 
int lineLength
 
std::string newline
 
std::string preamble
 
bool respondToMostModules
 
std::unordered_set< std::string > respondToThese
 
ELseverityLevel threshold
 
ELseverityLevel traceThreshold
 

Additional Inherited Members

- Static Protected Attributes inherited from edm::service::ELdestination
static const int defaultLineLength = 80
 

Detailed Description

Definition at line 43 of file ELoutput.h.

Constructor & Destructor Documentation

◆ ELoutput() [1/4]

edm::service::ELoutput::ELoutput ( )

Definition at line 125 of file ELoutput.cc.

126  : ELdestination(),
127  os(&std::cerr, do_nothing_deleter()),
128  charsOnLine(0),
129  xid(),
130  wantTimestamp(true),
131  wantModule(true),
132  wantSubroutine(true),
133  wantText(true),
134  wantSomeContext(true),
135  wantSerial(false),
136  wantFullContext(false),
137  wantTimeSeparate(false),
138  wantEpilogueSeparate(false),
139  preambleMode(true) // 006 9/2/10 mf
140  {
141 #ifdef ELoutputCONSTRUCTOR_TRACE
142  std::cerr << "Constructor for ELoutput()\n";
143 #endif
144 
145  emitToken("\n=================================================", true);
146  emitToken("\nMessage Log File written by MessageLogger service \n");
147  emitToken("\n=================================================\n", true);
148 
149  } // ELoutput()

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, and emitToken().

◆ ELoutput() [2/4]

edm::service::ELoutput::ELoutput ( std::ostream &  os,
bool  emitAtStart = false 
)

Definition at line 151 of file ELoutput.cc.

152  : ELdestination(),
153  os(&os_, do_nothing_deleter()),
154  charsOnLine(0),
155  xid(),
156  wantTimestamp(true),
157  wantModule(true),
158  wantSubroutine(true),
159  wantText(true),
160  wantSomeContext(true),
161  wantSerial(false),
162  wantFullContext(false),
163  wantTimeSeparate(false),
164  wantEpilogueSeparate(false),
165  preambleMode(true) // 006 9/2/10 mf
166  {
167 #ifdef ELoutputCONSTRUCTOR_TRACE
168  std::cerr << "Constructor for ELoutput( os )\n";
169 #endif
170 
171  // Enh 001 2/13/01 mf
172  if (emitAtStart) {
173  preambleMode = true;
174  emitToken("\n=================================================", true);
175  emitToken("\nMessage Log File written by MessageLogger service \n");
176  emitToken("\n=================================================\n", true);
177  }
178 
179  } // ELoutput()

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, emitToken(), and preambleMode.

◆ ELoutput() [3/4]

edm::service::ELoutput::ELoutput ( const std::string &  fileName,
bool  emitAtStart = false 
)

Definition at line 181 of file ELoutput.cc.

182  : ELdestination(),
183  os(new std::ofstream(fileName.c_str(), std::ios /*_base*/ ::app), close_and_delete()),
184  charsOnLine(0),
185  xid(),
186  wantTimestamp(true),
187  wantModule(true),
188  wantSubroutine(true),
189  wantText(true),
190  wantSomeContext(true),
191  wantSerial(false),
192  wantFullContext(false),
193  wantTimeSeparate(false),
194  wantEpilogueSeparate(false),
195  preambleMode(true) // 006 9/2/10 mf
196  {
197 #ifdef ELoutputCONSTRUCTOR_TRACE
198  std::cerr << "Constructor for ELoutput( " << fileName << " )\n";
199 #endif
200 
201  preambleMode = true;
202  if (os && *os) {
203 #ifdef ELoutputCONSTRUCTOR_TRACE
204  std::cerr << " Testing if os is owned\n";
205 #endif
206 #ifdef ELoutputCONSTRUCTOR_TRACE
207  std::cerr << " About to do first emit\n";
208 #endif
209  // Enh 001 2/13/01 mf
210  if (emitAtStart) {
211  emitToken("\n=======================================================", true);
212  emitToken("\nError Log File ");
214  emitToken(" \n");
215  }
216  } else {
217 #ifdef ELoutputCONSTRUCTOR_TRACE
218  std::cerr << " Deleting os\n";
219 #endif
220  os.reset(&std::cerr, do_nothing_deleter());
221 #ifdef ELoutputCONSTRUCTOR_TRACE
222  std::cerr << " about to emit to cerr\n";
223 #endif
224  if (emitAtStart) {
225  emitToken("\n=======================================================", true);
226  emitToken("\n%MSG** Logging to cerr is being substituted");
227  emitToken(" for specified log file \"");
229  emitToken("\" which could not be opened for write or append.\n");
230  }
231  }
232  if (emitAtStart) {
233  std::string const& ftime = formatTime(time(nullptr)); // Change log 7
234  emitToken(ftime, true);
235  emitToken("\n=======================================================\n", true);
236  }
237  // preambleMode = tprm; removed 9/2/10 mf see change log 6
238 
239 #ifdef ELoutputCONSTRUCTOR_TRACE
240  std::cerr << "Constructor for ELoutput completed.\n";
241 #endif
242 
243  } // ELoutput()

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, emitToken(), MillePedeFileConverter_cfg::fileName, os, preambleMode, AlCaHLTBitMon_QueryRunRegistry::string, and ntuplemaker::time.

◆ ELoutput() [4/4]

edm::service::ELoutput::ELoutput ( const ELoutput orig)

Definition at line 245 of file ELoutput.cc.

246  : ELdestination(),
247  os(orig.os),
248  charsOnLine(orig.charsOnLine),
249  xid(orig.xid),
250  wantTimestamp(orig.wantTimestamp),
251  wantModule(orig.wantModule),
252  wantSubroutine(orig.wantSubroutine),
253  wantText(orig.wantText),
254  wantSomeContext(orig.wantSomeContext),
255  wantSerial(orig.wantSerial),
256  wantFullContext(orig.wantFullContext),
257  wantTimeSeparate(orig.wantTimeSeparate),
258  wantEpilogueSeparate(orig.wantEpilogueSeparate),
259  preambleMode(orig.preambleMode) // 006 9/2/10 mf
260  {
261 #ifdef ELoutputCONSTRUCTOR_TRACE
262  std::cerr << "Copy constructor for ELoutput\n";
263 #endif
264 
265  // mf 6/15/01 fix of Bug 005
266  threshold = orig.threshold;
267  traceThreshold = orig.traceThreshold;
268  limits = orig.limits;
269  preamble = orig.preamble;
270  newline = orig.newline;
271  indent = orig.indent;
272  lineLength = orig.lineLength;
273 
274  ignoreMostModules = orig.ignoreMostModules;
275  respondToThese = orig.respondToThese;
276  respondToMostModules = orig.respondToMostModules;
277  ignoreThese = orig.ignoreThese;
278 
279  } // ELoutput()

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, edm::service::ELdestination::ignoreMostModules, edm::service::ELdestination::ignoreThese, edm::service::ELdestination::indent, edm::service::ELdestination::limits, edm::service::ELdestination::lineLength, edm::service::ELdestination::newline, edm::service::ELdestination::preamble, edm::service::ELdestination::respondToMostModules, edm::service::ELdestination::respondToThese, edm::service::ELdestination::threshold, and edm::service::ELdestination::traceThreshold.

◆ ~ELoutput()

edm::service::ELoutput::~ELoutput ( )
override

Definition at line 281 of file ELoutput.cc.

281  {
282 #ifdef ELoutputCONSTRUCTOR_TRACE
283  std::cerr << "Destructor for ELoutput\n";
284 #endif
285 
286  } // ~ELoutput()

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr.

Member Function Documentation

◆ attachEpilogue()

void edm::service::ELoutput::attachEpilogue ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 618 of file ELoutput.cc.

618 { wantEpilogueSeparate = false; }

References wantEpilogueSeparate.

◆ attachTime()

void edm::service::ELoutput::attachTime ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 615 of file ELoutput.cc.

615 { wantTimeSeparate = false; }

References wantTimeSeparate.

◆ changeFile() [1/2]

void edm::service::ELoutput::changeFile ( const std::string &  filename)
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 633 of file ELoutput.cc.

633  {
634  os.reset(new std::ofstream(filename.c_str(), std::ios /*_base*/ ::app), close_and_delete());
635  emitToken("\n=======================================================", true);
636  emitToken("\nError Log changed to this file\n");
637  std::string const& ftime = formatTime(time(nullptr)); // Change log 7
638  emitToken(ftime, true);
639  emitToken("\n=======================================================\n", true);
640  }

References emitToken(), corrVsCorr::filename, os, AlCaHLTBitMon_QueryRunRegistry::string, and ntuplemaker::time.

◆ changeFile() [2/2]

void edm::service::ELoutput::changeFile ( std::ostream &  os)
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 624 of file ELoutput.cc.

624  {
625  os.reset(&os_, do_nothing_deleter());
626  emitToken("\n=======================================================", true);
627  emitToken("\nError Log changed to this stream\n");
628  std::string const& ftime = formatTime(time(nullptr)); // Change log 7
629  emitToken(ftime, true);
630  emitToken("\n=======================================================\n", true);
631  }

References emitToken(), os, AlCaHLTBitMon_QueryRunRegistry::string, and ntuplemaker::time.

◆ emitToken()

void edm::service::ELoutput::emitToken ( std::string_view  s,
bool  nl = false 
)
protected

Definition at line 511 of file ELoutput.cc.

511  {
512 #ifdef ELoutput_EMIT_TRACE
513  std::cerr << "[][][] in emit: charsOnLine is " << charsOnLine << '\n';
514  std::cerr << "[][][] in emit: s.length() " << s.length() << '\n';
515  std::cerr << "[][][] in emit: lineLength is " << lineLength << '\n';
516 #endif
517 
518  if (s.length() == 0) {
519  if (nl) {
520  (*os) << newline << std::flush;
521  charsOnLine = 0;
522  }
523  return;
524  }
525 
526  char first = s[0];
527  char second, last, last2;
528  second = (s.length() < 2) ? '\0' : s[1];
529  last = (s.length() < 2) ? '\0' : s[s.length() - 1];
530  last2 = (s.length() < 3) ? '\0' : s[s.length() - 2];
531  //checking -2 because the very last char is sometimes a ' ' inserted
532  //by ErrorLog::operator<<
533 
534  if (preambleMode) {
535  //Accounts for newline @ the beginning of the ELstring JV:2
536  if (first == '\n' || (charsOnLine + static_cast<int>(s.length())) > lineLength) {
537 #ifdef ELoutput_EMIT_TRACE
538  std::cerr << "[][][] in emit: about to << to *os \n";
539 #endif
540 #ifdef HEADERS_BROKEN_INTO_LINES_AND_INDENTED
541  // Change log 3: Removed this code 6/11/07 mf
542  (*os) << newline << indent;
543  charsOnLine = indent.length();
544 #else
545  charsOnLine = 0; // Change log 5
546 #endif
547  if (second != ' ') {
548  (*os) << ' ';
549  charsOnLine++;
550  }
551  if (first == '\n') {
552  (*os) << s.substr(1);
553  } else {
554  (*os) << s;
555  }
556  }
557 #ifdef ELoutput_EMIT_TRACE
558  std::cerr << "[][][] in emit: about to << s to *os: " << s << " \n";
559 #endif
560  else {
561  (*os) << s;
562  }
563 
564  if (last == '\n' || last2 == '\n') { //accounts for newline @ end $$ JV:2
565  (*os) << indent; //of the ELstring
566  if (last != ' ')
567  (*os) << ' ';
568  charsOnLine = indent.length() + 1;
569  }
570 
571  if (nl) {
572  (*os) << newline << std::flush;
573  charsOnLine = 0;
574  } else {
575  charsOnLine += s.length();
576  }
577  }
578 
579  if (!preambleMode) {
580  (*os) << s;
581  }
582 
583 #ifdef ELoutput_EMIT_TRACE
584  std::cerr << "[][][] in emit: completed \n";
585 #endif
586 
587  } // emitToken()

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, charsOnLine, edm::first(), edm::service::ELdestination::indent, dqmdumpme::last, edm::service::ELdestination::lineLength, edm::service::ELdestination::newline, preambleMode, alignCSCRings::s, and edm::second().

Referenced by changeFile(), ELoutput(), and log().

◆ flush()

void edm::service::ELoutput::flush ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 642 of file ELoutput.cc.

642 { os->flush(); }

References os.

Referenced by log().

◆ includeContext()

void edm::service::ELoutput::includeContext ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 605 of file ELoutput.cc.

605 { wantSomeContext = true; }

References wantSomeContext.

◆ includeModule()

void edm::service::ELoutput::includeModule ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 596 of file ELoutput.cc.

596 { wantModule = true; }

References wantModule.

◆ includeSerial()

void edm::service::ELoutput::includeSerial ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 609 of file ELoutput.cc.

609 { wantSerial = true; }

References wantSerial.

◆ includeSubroutine()

void edm::service::ELoutput::includeSubroutine ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 599 of file ELoutput.cc.

599 { wantSubroutine = true; }

References wantSubroutine.

◆ includeText()

void edm::service::ELoutput::includeText ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 602 of file ELoutput.cc.

602 { wantText = true; }

References wantText.

◆ includeTime()

void edm::service::ELoutput::includeTime ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 593 of file ELoutput.cc.

593 { wantTimestamp = true; }

References wantTimestamp.

◆ log()

bool edm::service::ELoutput::log ( const edm::ErrorObj msg)
overridevirtual

Reimplemented from edm::service::ELdestination.

Definition at line 295 of file ELoutput.cc.

295  {
296 #ifdef ELoutputTRACE_LOG
297  std::cerr << " =:=:=: Log to an ELoutput \n";
298 #endif
299 
300  xid = msg.xid(); // Save the xid.
301 
302 #ifdef THRESHTRACE
303  std::cerr << " =:=:=: Log to an ELoutput \n"
304  << " severity = " << xid.severity << "\n"
305  << " threshold = " << threshold << "\n"
306  << " id = " << xid.id << "\n";
307 #endif
308 
309  // See if this message is to be acted upon, and add it to limits table
310  // if it was not already present:
311  //
312  if (xid.severity < threshold)
313  return false;
314  if (thisShouldBeIgnored(xid.module) && (xid.severity < ELsevere) /* change log 2 */)
315  return false;
316  if (!limits.add(xid) && (xid.severity < ELsevere) /* change log 2 */)
317  return false;
318 
319 #ifdef ELoutputTRACE_LOG
320  std::cerr << " =:=:=: Limits table work done \n";
321 #endif
322 
323  // Output the prologue:
324  //
325  preambleMode = true;
326 
327  if (!msg.is_verbatim()) {
328  charsOnLine = 0; // Change log 5
331  emitToken(" ");
332  emitToken(xid.id);
333  emitToken(msg.idOverflow());
334  emitToken(": ");
335  }
336 
337 #ifdef ELoutputTRACE_LOG
338  std::cerr << " =:=:=: Prologue done \n";
339 #endif
340  // Output serial number of message:
341  //
342  if (!msg.is_verbatim()) {
343  if (wantSerial) {
344  std::ostringstream s;
345  s << msg.serial();
346  emitToken("[serial #" + s.str() + "] ");
347  }
348  }
349 
350 #ifdef OUTPUT_FORMATTED_ERROR_MESSAGES
351  // Output each item in the message (before the epilogue):
352  //
353  if (wantText) {
354  ELlist_string::const_iterator it;
355  for (it = msg.items().begin(); it != msg.items().end(); ++it) {
356 #ifdef ELoutputTRACE_LOG
357  std::cerr << " =:=:=: Item: " << *it << '\n';
358 #endif
359  emitToken(*it);
360  }
361  }
362 #endif
363 
364  // Provide further identification:
365  //
366  bool needAspace = true;
367  if (!msg.is_verbatim()) {
368  if (wantEpilogueSeparate) {
369  if (xid.module.length() + xid.subroutine.length() > 0) {
370  emitToken("\n");
371  needAspace = false;
372  } else if (wantTimestamp && !wantTimeSeparate) {
373  emitToken("\n");
374  needAspace = false;
375  }
376  }
377  if (wantModule && (xid.module.length() > 0)) {
378  if (needAspace) {
379  emitToken(" ");
380  needAspace = false;
381  }
382  emitToken(xid.module + " ");
383  }
384  if (wantSubroutine && (xid.subroutine.length() > 0)) {
385  if (needAspace) {
386  emitToken(" ");
387  needAspace = false;
388  }
389  emitToken(xid.subroutine + "() ");
390  }
391  }
392 
393 #ifdef ELoutputTRACE_LOG
394  std::cerr << " =:=:=: Module and Subroutine done \n";
395 #endif
396 
397  // Provide time stamp:
398  //
399  if (!msg.is_verbatim()) {
400  if (wantTimestamp) {
401  if (wantTimeSeparate) {
402  emitToken("\n");
403  needAspace = false;
404  }
405  if (needAspace) {
406  emitToken(" ");
407  needAspace = false;
408  }
409  std::string const& ftime = formatTime(msg.timestamp()); // Change log 7
410  emitToken(ftime + " ");
411  }
412  }
413 
414 #ifdef ELoutputTRACE_LOG
415  std::cerr << " =:=:=: TimeStamp done \n";
416 #endif
417 
418  // Provide the context information:
419  //
420  if (!msg.is_verbatim()) {
421  if (wantSomeContext) {
422  if (needAspace) {
423  emitToken(" ");
424  needAspace = false;
425  }
426  assert(!needAspace);
427  if (wantFullContext) {
428  emitToken(msg.context());
429 #ifdef ELoutputTRACE_LOG
430  std::cerr << " =:=:=: fullContext done: \n";
431 #endif
432  } else {
433  emitToken(msg.context());
434 #ifdef ELoutputTRACE_LOG
435  std::cerr << " =:=:=: Context done: \n";
436 #endif
437  }
438  }
439  }
440 
441  // Provide traceback information:
442  //
443 
444  bool insertNewlineAfterHeader = (msg.xid().severity != ELdebug);
445  // ELdebug is what LogDebug issues
446 
447  if (!msg.is_verbatim()) {
448  if (msg.xid().severity >= traceThreshold) {
449  emitToken("\n", insertNewlineAfterHeader);
450  } else { //else statement added JV:1
451  emitToken("", insertNewlineAfterHeader);
452  }
453  }
454 #ifdef ELoutputTRACE_LOG
455  std::cerr << " =:=:=: Trace routine done: \n";
456 #endif
457 
458 #ifndef OUTPUT_FORMATTED_ERROR_MESSAGES
459  // Finally, output each item in the message:
460  //
461  preambleMode = false;
462  if (wantText) {
463  ELlist_string::const_iterator it;
464  int item_count = 0;
465  for (it = msg.items().begin(); it != msg.items().end(); ++it) {
466 #ifdef ELoutputTRACE_LOG
467  std::cerr << " =:=:=: Item: " << *it << '\n';
468 #endif
469  ++item_count;
470  if (!msg.is_verbatim()) {
471  if (!insertNewlineAfterHeader && (item_count == 3)) {
472  // in a LogDebug message, the first 3 items are FILE, :, and LINE
473  emitToken(*it, true);
474  } else {
475  emitToken(*it);
476  }
477  } else {
478  emitToken(*it);
479  }
480  }
481  }
482 #endif
483 
484  // And after the message, add a %MSG on its own line
485  // Change log 4 6/11/07 mf
486 
487  if (!msg.is_verbatim()) {
488  emitToken("\n%MSG");
489  }
490 
491  // Done; message has been fully processed; separate, flush, and leave
492  //
493 
494  (*os) << newline;
495  flush();
496 
497 #ifdef ELoutputTRACE_LOG
498  std::cerr << " =:=:=: log(msg) done: \n";
499 #endif
500 
501  return true;
502 
503  } // log()

References edm::service::ELlimitsTable::add(), cms::cuda::assert(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, charsOnLine, edm::ELdebug, edm::ELsevere, emitToken(), flush(), edm::ELseverityLevel::getSymbol(), edm::ELextendedID::id, edm::service::ELdestination::limits, edm::ELextendedID::module, mps_check::msg, edm::service::ELdestination::newline, edm::service::ELdestination::preamble, preambleMode, alignCSCRings::s, edm::ELextendedID::severity, AlCaHLTBitMon_QueryRunRegistry::string, edm::ELextendedID::subroutine, edm::service::ELdestination::thisShouldBeIgnored(), edm::service::ELdestination::threshold, edm::service::ELdestination::traceThreshold, wantEpilogueSeparate, wantFullContext, wantModule, wantSerial, wantSomeContext, wantSubroutine, wantText, wantTimeSeparate, wantTimestamp, and xid.

◆ operator=()

ELoutput& edm::service::ELoutput::operator= ( const ELoutput orig)
protecteddelete

◆ separateEpilogue()

void edm::service::ELoutput::separateEpilogue ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 617 of file ELoutput.cc.

617 { wantEpilogueSeparate = true; }

References wantEpilogueSeparate.

◆ separateTime()

void edm::service::ELoutput::separateTime ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 614 of file ELoutput.cc.

614 { wantTimeSeparate = true; }

References wantTimeSeparate.

◆ suppressContext()

void edm::service::ELoutput::suppressContext ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 606 of file ELoutput.cc.

606 { wantSomeContext = false; }

References wantSomeContext.

◆ suppressModule()

void edm::service::ELoutput::suppressModule ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 597 of file ELoutput.cc.

597 { wantModule = false; }

References wantModule.

◆ suppressSerial()

void edm::service::ELoutput::suppressSerial ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 608 of file ELoutput.cc.

608 { wantSerial = false; }

References wantSerial.

◆ suppressSubroutine()

void edm::service::ELoutput::suppressSubroutine ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 600 of file ELoutput.cc.

600 { wantSubroutine = false; }

References wantSubroutine.

◆ suppressText()

void edm::service::ELoutput::suppressText ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 603 of file ELoutput.cc.

603 { wantText = false; }

References wantText.

◆ suppressTime()

void edm::service::ELoutput::suppressTime ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 594 of file ELoutput.cc.

594 { wantTimestamp = false; }

References wantTimestamp.

◆ useContext()

void edm::service::ELoutput::useContext ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 612 of file ELoutput.cc.

612 { wantFullContext = false; }

References wantFullContext.

◆ useFullContext()

void edm::service::ELoutput::useFullContext ( )
overrideprotectedvirtual

Reimplemented from edm::service::ELdestination.

Definition at line 611 of file ELoutput.cc.

611 { wantFullContext = true; }

References wantFullContext.

Member Data Documentation

◆ charsOnLine

int edm::service::ELoutput::charsOnLine
protected

Definition at line 95 of file ELoutput.h.

Referenced by emitToken(), and log().

◆ os

std::shared_ptr<std::ostream> edm::service::ELoutput::os
protected

Definition at line 94 of file ELoutput.h.

Referenced by changeFile(), ELoutput(), and flush().

◆ preambleMode

bool edm::service::ELoutput::preambleMode
protected

Definition at line 98 of file ELoutput.h.

Referenced by ELoutput(), emitToken(), and log().

◆ wantEpilogueSeparate

bool edm::service::ELoutput::wantEpilogueSeparate
protected

Definition at line 98 of file ELoutput.h.

Referenced by attachEpilogue(), log(), and separateEpilogue().

◆ wantFullContext

bool edm::service::ELoutput::wantFullContext
protected

Definition at line 98 of file ELoutput.h.

Referenced by log(), useContext(), and useFullContext().

◆ wantModule

bool edm::service::ELoutput::wantModule
protected

Definition at line 98 of file ELoutput.h.

Referenced by includeModule(), log(), and suppressModule().

◆ wantSerial

bool edm::service::ELoutput::wantSerial
protected

Definition at line 98 of file ELoutput.h.

Referenced by includeSerial(), log(), and suppressSerial().

◆ wantSomeContext

bool edm::service::ELoutput::wantSomeContext
protected

Definition at line 98 of file ELoutput.h.

Referenced by includeContext(), log(), and suppressContext().

◆ wantSubroutine

bool edm::service::ELoutput::wantSubroutine
protected

Definition at line 98 of file ELoutput.h.

Referenced by includeSubroutine(), log(), and suppressSubroutine().

◆ wantText

bool edm::service::ELoutput::wantText
protected

Definition at line 98 of file ELoutput.h.

Referenced by includeText(), log(), and suppressText().

◆ wantTimeSeparate

bool edm::service::ELoutput::wantTimeSeparate
protected

Definition at line 98 of file ELoutput.h.

Referenced by attachTime(), log(), and separateTime().

◆ wantTimestamp

bool edm::service::ELoutput::wantTimestamp
protected

Definition at line 98 of file ELoutput.h.

Referenced by includeTime(), log(), and suppressTime().

◆ xid

edm::ELextendedID edm::service::ELoutput::xid
protected

Definition at line 96 of file ELoutput.h.

Referenced by log().

edm::ELextendedID::module
std::string module
Definition: ELextendedID.h:31
edm::service::ELoutput::wantModule
bool wantModule
Definition: ELoutput.h:98
edm::service::ELdestination::respondToThese
std::unordered_set< std::string > respondToThese
Definition: ELdestination.h:126
edm::service::ELdestination::traceThreshold
ELseverityLevel traceThreshold
Definition: ELdestination.h:118
edm::service::ELoutput::wantTimestamp
bool wantTimestamp
Definition: ELoutput.h:98
edm::service::ELoutput::wantTimeSeparate
bool wantTimeSeparate
Definition: ELoutput.h:98
cms::cuda::assert
assert(be >=bs)
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
mps_check.msg
tuple msg
Definition: mps_check.py:285
edm::service::ELdestination::lineLength
int lineLength
Definition: ELdestination.h:123
edm::service::ELoutput::flush
void flush() override
Definition: ELoutput.cc:642
edm::ELseverityLevel::getSymbol
const std::string & getSymbol() const
Definition: ELseverityLevel.cc:86
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
edm::service::ELoutput::wantFullContext
bool wantFullContext
Definition: ELoutput.h:98
edm::service::ELoutput::wantText
bool wantText
Definition: ELoutput.h:98
edm::service::ELoutput::wantSubroutine
bool wantSubroutine
Definition: ELoutput.h:98
edm::first
T first(std::pair< T, U > const &p)
Definition: ParameterSet.cc:217
alignCSCRings.s
s
Definition: alignCSCRings.py:92
dqmdumpme.last
last
Definition: dqmdumpme.py:56
edm::service::ELdestination::indent
std::string indent
Definition: ELdestination.h:122
edm::service::ELoutput::os
std::shared_ptr< std::ostream > os
Definition: ELoutput.h:94
edm::service::ELdestination::respondToMostModules
bool respondToMostModules
Definition: ELdestination.h:124
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
edm::service::ELoutput::emitToken
void emitToken(std::string_view s, bool nl=false)
Definition: ELoutput.cc:511
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::service::ELdestination::thisShouldBeIgnored
virtual bool thisShouldBeIgnored(std::string const &s) const
Definition: ELdestination.cc:211
edm::service::ELdestination::newline
std::string newline
Definition: ELdestination.h:121
edm::service::ELoutput::wantSerial
bool wantSerial
Definition: ELoutput.h:98
edm::service::ELdestination::ELdestination
ELdestination()
Definition: ELdestination.cc:42
edm::ELsevere
constexpr const ELseverityLevel ELsevere
Definition: ELseverityLevel.h:106
edm::service::ELdestination::ignoreMostModules
bool ignoreMostModules
Definition: ELdestination.h:125
edm::service::ELlimitsTable::add
bool add(const ELextendedID &xid)
Definition: ELlimitsTable.cc:65
edm::service::ELlimitsTable::limits
ELmap_limits limits
Definition: ELlimitsTable.h:97
edm::service::ELoutput::preambleMode
bool preambleMode
Definition: ELoutput.h:98
edm::service::ELoutput::wantEpilogueSeparate
bool wantEpilogueSeparate
Definition: ELoutput.h:98
edm::ELdebug
constexpr const ELseverityLevel ELdebug
Definition: ELseverityLevel.h:94
edm::service::ELdestination::limits
ELlimitsTable limits
Definition: ELdestination.h:119
edm::service::ELdestination::threshold
ELseverityLevel threshold
Definition: ELdestination.h:117
edm::ELextendedID::id
std::string id
Definition: ELextendedID.h:29
edm::service::ELoutput::wantSomeContext
bool wantSomeContext
Definition: ELoutput.h:98
edm::ELextendedID::subroutine
std::string subroutine
Definition: ELextendedID.h:32
edm::service::ELdestination::preamble
std::string preamble
Definition: ELdestination.h:120
edm::ELextendedID::severity
ELseverityLevel severity
Definition: ELextendedID.h:30
ntuplemaker.time
time
Definition: ntuplemaker.py:310
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
cerr
Definition: EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8
edm::service::ELoutput::charsOnLine
int charsOnLine
Definition: ELoutput.h:95
edm::service::ELdestination::ignoreThese
std::unordered_set< std::string > ignoreThese
Definition: ELdestination.h:127
edm::service::ELoutput::xid
edm::ELextendedID xid
Definition: ELoutput.h:96