#include "BaseTraceCollector.hxx"
#include "BasicsGenericDestructor.hxx"
+#define BRIEF_MESS 2
#define ABORT_MESS 1 // for traceType field in struct LocalTrace_TraceInfo
#define NORMAL_MESS 0
std::cerr << std::flush ;
exit(1);
}
- else
+ else if (myTrace.traceType == NORMAL_MESS)
{
std::cout << std::flush ;
#ifndef WIN32
#else
std::cerr << "th. " << (void*)(&myTrace.threadId)
<< " " << myTrace.trace;
+#endif
+ std::cerr << std::flush ;
+ }
+ else
+ {
+ std::cout << std::flush ;
+#ifndef WIN32
+ std::cerr << myTrace.trace;
+#else
+ std::cerr << myTrace.trace;
#endif
std::cerr << std::flush ;
}
// --- Some macros are always defined (without _DEBUG_): for use with release version
#define INFOS(msg) {MESS_BEGIN("- Trace ") << msg << MESS_END}
+#define BRIEF_INFOS(msg) {std::ostringstream os; os<< msg << std::endl; LocalTraceBufferPool::instance()->insert(BRIEF_MESS, os.str().c_str());}
#define PYSCRIPT(msg) {MESS_INIT("---PYSCRIPT--- ") << msg << MESS_END}
#define INTERRUPTION(msg) {MESS_BEGIN("- INTERRUPTION: ")<< msg << MESS_ABORT}