00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "EvtGenBase/EvtPatches.hh"
00022
00023
00024 #include "EvtGenBase/EvtReport.hh"
00025 using std::cerr;
00026 using std::cout;
00027 using std::endl;
00028 using std::ostream;
00029
00030
00031
00032
00033
00034
00035
00036 ostream& report( Severity severity ,
00037 const char* facility )
00038 {
00039 int printNoFacility=1;
00040
00041 if ( ( facility == 0 ) &&
00042 ( printNoFacility ==1) ) {
00043 cout << "There is no `facility' implemented in `report'"
00044 << endl ;
00045 printNoFacility = 0 ;
00046 }
00047 if ( severity < WARNING ) {
00048 if (facility[0]!=0){
00049 cerr<<facility<<":";
00050 }
00051 return ( cerr ) ;
00052 }
00053 if (facility[0]!=0){
00054 cout<<facility<<":";
00055 }
00056 return cout;
00057 }
00058
00059