46 , wantTimestamp (
true )
48 , wantSubroutine (
true )
50 , wantSomeContext (
true )
51 , wantSerial (
false )
52 , wantFullContext (
false )
53 , wantTimeSeparate (
false )
54 , wantEpilogueSeparate(
false )
57 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
58 std::cerr <<
"Constructor for ELfwkJobReport()\n";
62 emitToken(
"<FrameworkJobReport>\n",
true );
72 , wantTimestamp (
true )
74 , wantSubroutine (
true )
76 , wantSomeContext (
true )
77 , wantSerial (
false )
78 , wantFullContext (
false )
79 , wantTimeSeparate (
false )
80 , wantEpilogueSeparate(
false )
83 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
84 std::cerr <<
"Constructor for ELfwkJobReport( os )\n";
88 emitToken(
"<FrameworkJobReport>\n\n",
true );
95 , os ( new std::ofstream( fileName.c_str() , std::ios::app),
close_and_delete())
98 , wantTimestamp (
true )
100 , wantSubroutine (
true )
102 , wantSomeContext (
true )
103 , wantSerial (
false )
104 , wantFullContext (
false )
105 , wantTimeSeparate (
false )
106 , wantEpilogueSeparate(
false )
109 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
110 std::cerr <<
"Constructor for ELfwkJobReport( " << fileName <<
" )\n";
114 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
115 std::cerr <<
" Testing if os is owned\n";
117 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
118 std::cerr <<
" About to do first emit\n";
123 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
127 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
134 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
135 std::cerr <<
"Constructor for ELfwkJobReport completed.\n";
144 , charsOnLine ( orig.charsOnLine )
146 , wantTimestamp ( orig.wantTimestamp )
147 , wantModule ( orig.wantModule )
148 , wantSubroutine ( orig.wantSubroutine )
149 , wantText ( orig.wantText )
150 , wantSomeContext ( orig.wantSomeContext )
151 , wantSerial ( orig.wantSerial )
152 , wantFullContext ( orig.wantFullContext )
153 , wantTimeSeparate ( orig.wantTimeSeparate )
154 , wantEpilogueSeparate( orig.wantEpilogueSeparate )
157 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
158 std::cerr <<
"Copy constructor for ELfwkJobReport\n";
180 #ifdef ELfwkJobReportCONSTRUCTOR_TRACE
181 std::cerr <<
"Destructor for ELfwkJobReport\n";
200 #ifdef ELfwkJobReportTRACE_LOG
201 std::cerr <<
" =:=:=: Log to an ELfwkJobReport \n";
207 if (
xid.
id !=
"FwkJob")
return false;
215 if ( (
xid.
id ==
"BeginningJob") ||
216 (
xid.
id ==
"postBeginJob") ||
217 (
xid.
id ==
"preEventProcessing") ||
218 (
xid.
id ==
"preModule") ||
219 (
xid.
id ==
"postModule") ||
220 (
xid.
id ==
"postEventProcessing") ||
221 (
xid.
id ==
"postEndJob") )
return false;
225 #ifdef ELfwkJobReportTRACE_LOG
226 std::cerr <<
" =:=:=: Limits table work done \n";
242 #ifdef ELfwkJobReportTRACE_LOG
249 ELlist_string::const_iterator it;
250 for ( it = msg.
items().begin(); it != msg.
items().end(); ++it ) {
251 #ifdef ELfwkJobReportTRACE_LOG
252 std::cerr <<
" =:=:=: Item: " << *it <<
'\n';
270 #ifdef ELfwkJobReportTRACE_LOG
278 #ifdef ELfwkJobReportTRACE_LOG
279 std::cerr <<
" =:=:=: log(msg) done: \n";
288 (*os) <<
"</FrameworkJobReport>\n";
300 #ifdef ELfwkJobReport_EMIT_TRACE
302 std::cerr <<
"[][][] in emit: s.length() " << s.length() <<
'\n';
306 if (s.length() == 0) {
310 #ifdef ELfwkJobReport_EMIT_TRACE
311 std::cerr <<
"[][][] in emit: about to << s to *os: " << s <<
" \n";
316 #ifdef ELfwkJobReport_EMIT_TRACE
317 std::cerr <<
"[][][] in emit: completed \n";
363 const int titleMaxLength( 40 );
395 emitToken(
"\n=======================================================",
true );
396 emitToken(
"\nError Log changed to this stream\n" );
397 emitToken(
"\n=======================================================\n",
true );
402 emitToken(
"\n=======================================================",
true );
403 emitToken(
"\nError Log changed to this file\n" );
404 emitToken(
"\n=======================================================\n",
true );
virtual void includeContext()
ELseverityLevel traceThreshold
virtual void useFullContext()
virtual void includeTime()
bool wantEpilogueSeparate
virtual void includeSubroutine()
virtual void separateTime()
virtual bool thisShouldBeIgnored(const ELstring &s) const
virtual ~ELfwkJobReport()
virtual void suppressSubroutine()
virtual void suppressTime()
virtual void suppressSerial()
ELseverityLevel threshold
virtual bool log(const ErrorObj &msg)
boost::shared_ptr< std::ostream > os
virtual ELfwkJobReport * clone() const
virtual void includeSerial()
virtual void attachTime()
const ELextendedID & xid() const
virtual void emitToken(const ELstring &s, bool nl=false)
virtual void suppressContext()
bool add(const ELextendedID &xid)
ELset_string respondToThese
virtual void includeModule()
virtual void suppressModule()
const ELlist_string & items() const
virtual void suppressText()
virtual void changeFile(std::ostream &os)
bool respondToMostModules
virtual void includeText()
virtual void summarization(const ELstring &fullTitle, const ELstring &sumLines)
virtual void useContext()
virtual void attachEpilogue()
virtual void separateEpilogue()