56 #ifdef ErrorLog_EMIT_TRACE
74 , spaceAfterInt(
false)
77 , debugVerbosityLevel(0)
78 , debugSeverityLevel(
ELinfo)
79 , debugMessageId (
"DEBUG")
82 #ifdef ErrorLogCONSTRUCTOR_TRACE
83 std::cout <<
"Constructor for ErrorLog\n";
93 , spaceAfterInt(
false)
96 , debugVerbosityLevel(0)
97 , debugSeverityLevel(
ELinfo)
98 , debugMessageId (
"DEBUG")
101 #ifdef ErrorLogCONSTRUCTOR_TRACE
102 std::cout <<
"Constructor for ErrorLog (with pkgName = " << pkgName <<
")\n";
110 #ifdef ErrorLogCONSTRUCTOR_TRACE
111 std::cout <<
"Destructor for ErrorLog\n";
128 #ifdef ErrorLogENDMSG_TRACE
129 std::cout <<
"=:=:=: precautionary endmsg ( "
130 << sev.
getName() <<
", " <<
id <<
")\n";
156 std::ostringstream os;
157 os <<
"msgexit - MessageLogger Log requested to exit with status " <<
s;
163 std::ostringstream os;
164 os <<
"msgabort - MessageLogger Log requested to abort";
170 if (s < a && s < e)
return;
182 #ifdef ErrorLogENDMSG_TRACE
183 std::cout <<
"=:=:=: precautionary endmsg called from operator() (msg) \n";
190 bool updateProcess ( msg.
xid().
process .length() == 0 );
191 bool updateModule ( msg.
xid().
module .length() == 0 );
211 std::cerr <<
"\nERROR LOGGED WITHOUT DESTINATION!\n";
212 std::cerr <<
"Attaching destination \"cerr\" to ELadministrator by default\n"
216 std::list<boost::shared_ptr<ELdestination> >::iterator d;
217 for ( d =
a->
sinks().begin(); d !=
a->
sinks().end(); ++d )
218 if ( (*d)->log( msg ) )
258 #ifdef ErrorLogOUTPUT_TRACE
259 std::cout <<
"=:=:=: ErrorLog output trace: f at " << std::hex <<
f
271 #ifdef ErrorLogEMIT_TRACE
272 std::cout <<
" =:=:=: ErrorLog emit trace: string is: " << s <<
"\n";
280 #ifdef ErrorLogEMIT_TRACE
281 std::cout <<
" =:=:=: ErrorLog emit trace: return from a->msg.emitToken()\n";
291 #ifdef ErrorLogENDMSG_TRACE
297 #ifdef ErrorLogENDMSG_TRACE
298 std::cout <<
"=:=:=: endmsg () -- finishMsg started\n";
301 #ifdef ErrorLogENDMSG_TRACE
302 std::cout <<
"=:=:=: endmsg () -- finishMsg completed\n";
365 std::ostringstream ost;
367 int m = (n<0) ? -n : n;
370 << std::hex << std::setw(8) << std::setfill(
'0')
380 std::ostringstream ost;
383 (n >= static_cast<unsigned int>(e.
hexTrigger)) ) {
385 << std::hex << std::setw(8) << std::setfill(
'0')
395 std::ostringstream ost;
397 long m = (n<0) ? -n : n;
400 if ( static_cast<unsigned long>(n) > 0xFFFFFFFF
L ) width = 16;
402 << std::hex << std::setw(width) << std::setfill(
'0')
412 std::ostringstream ost;
415 (n >= static_cast<unsigned long>(e.
hexTrigger)) ) {
417 if ( n > 0xFFFFFFFFL ) width = 16;
419 << std::hex << std::setw(width) << std::setfill(
'0')
429 std::ostringstream ost;
431 short m = (n<0) ? -n : n;
434 << std::hex << std::setw(4) << std::setfill(
'0')
444 std::ostringstream ost;
448 << std::hex << std::setw(4) << std::setfill(
'0')
466 std::ostringstream ost;
void setModule(const ELstring &modName)
bool setSpaceAfterInt(bool space=true)
std::list< boost::shared_ptr< ELdestination > > & sinks()
int severityCounts_[ELseverityLevel::nLevels]
bool getELdestControl(const ELstring &name, ELdestControl &theDestControl) const
virtual void set(const ELseverityLevel &sev, const ELstring &id)
static PFTauRenderPlugin instance
void setPackage(const ELstring &pkgName)
ErrorLog & operator()(const ELseverityLevel &sev, const ELstring &id)
virtual ErrorObj & emitToken(const ELstring &txt)
ELslProxy< ELunspecifiedGen > const ELunspecified
virtual void setSubroutine(const ELstring &subroutine)
void endmsg(ErrorLog &log)
const ELstring & process() const
ErrorLog & operator<<(void(*f)(ErrorLog &))
ELseverityLevel setDiscardThreshold(ELseverityLevel sev)
virtual void setReactedTo(bool r)
const ELextendedID & xid() const
void setDebugMessages(ELseverityLevel sev, ELstring id)
ELseverityLevel discardThreshold
ErrorLog & emitToken(const ELstring &msg)
ELslProxy< ELzeroSeverityGen > const ELzeroSeverity
static void possiblyAbOrEx(int s, int a, int e)
const ELstring getName() const
void setSubroutine(const ELstring &subName)
void setDebugVerbosity(int debugVerbosity)
ELseverityLevel highSeverity_
ELstring subroutineName() const
bool getELdestControl(const ELstring &name, ELdestControl &theControl)
boost::shared_ptr< ELcontextSupplier > context_
ErrorLog & operator<<(ErrorLog &e, const T &t)
ELslProxy< ELinfoGen > const ELinfo
ELseverityLevel debugSeverityLevel
ELstring moduleName() const
int setHexTrigger(int trigger)
char data[epos_bytes_allocation]
virtual void setProcess(const ELstring &proc)
static void msgexit(int s)
ELdestControl attach(const ELdestination &sink)
void ELrecv(int nbytes, const char *data)
const ELseverityLevel & exitThreshold() const
const ELseverityLevel & abortThreshold() const
virtual void setModule(const ELstring &module)