BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtReport.hh File Reference
#include <iostream>

Go to the source code of this file.

Enumerations

enum  Severity {
  EMERGENCY , ALERT , CRITICAL , ERROR ,
  WARNING , NOTICE , INFO , DEBUG ,
  EMERGENCY , ALERT , CRITICAL , ERROR ,
  WARNING , NOTICE , INFO , DEBUG
}
 

Functions

std::ostream & report (Severity severity, const char *facility=0)
 

Enumeration Type Documentation

◆ Severity

enum Severity
Enumerator
EMERGENCY 
ALERT 
CRITICAL 
ERROR 
WARNING 
NOTICE 
INFO 
DEBUG 
EMERGENCY 
ALERT 
CRITICAL 
ERROR 
WARNING 
NOTICE 
INFO 
DEBUG 

Definition at line 45 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtReport.hh.

Function Documentation

◆ report()

std::ostream & report ( Severity  severity,
const char *  facility = 0 
)

Definition at line 36 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtReport.cc.

38{
39 int printNoFacility=1;
40
41 if ( ( facility == 0 ) &&
42 ( printNoFacility ==1) ) {
43 cout << "There is no `facility' implemented in `report'"
44 << endl ;
45 printNoFacility = 0 ;
46 }
47 if ( severity < WARNING ) {
48 if (facility[0]!=0){
49 cerr<<facility<<":";
50 }
51 return ( cerr ) ;
52 }
53 if (facility[0]!=0){
54 cout<<facility<<":";
55 }
56 return cout;
57}