37 #define LIFE_DEBUG_H 1
43 #include <lifev/core/LifeV.hpp> 56 # define LIFEV_FUNCINFO "[" << __PRETTY_FUNCTION__ << "] " 58 # define LIFEV_FUNCINFO "[" << __FILE__ << ":" << __LINE__ << "] " 61 #define LIFEV_LINEINFO "[" << __FILE__ << ":" << __LINE__ << "] " 69 typedef int (*
stprintf) (
const char* format, ... );
75 DebugStream (
int area = 0,
int level = 1,
bool print =
true);
76 DebugStream (
const char* initialString,
int area = 0,
int level = 1,
bool print =
true);
94 static void attach ( std::string
const& logfile );
95 static void attach ( std::string
const& logfile,
int area );
96 static void detach ( std::string
const& logfile,
int area );
111 std::ostringstream out_stream;
113 stream << out_stream.str();
117 #ifdef HAVE_BACKTRACE 128 typedef int (*
stprintf) (
const char* format, ... );
176 #ifdef HAVE_LIFEV_DEBUG 182 #define debugStream noDebugStream NdebugStream & perror(NdebugStream &s)
DebugStream Warning(bool cond, int area=0)
DebugStream Fatal(int area=0)
DebugStream(DebugStream const &)
int(* stprintf)(const char *format,...)
DebugStream(int area=0, int level=1, bool print=true)
void setFlush(stprintf=0)
LifeV::DebugStream & flush(LifeV::DebugStream &s)
LifeV::DebugStream & perror(LifeV::DebugStream &s)
DebugStream Warning(int area=0)
void updateInverseJacobian(const UInt &iQuadPt)
NdebugStream & flush(NdebugStream &s)
DebugStream Error(bool cond, int area=0)
int(* stprintf)(const char *format,...)
NdebugStream & endl(NdebugStream &s)
DebugStream Fatal(bool cond, int area=0)
DebugStream Error(int area=0)
NdebugStream noDebugStream(int=0, NdebugStream::stprintf=&printf)
DebugStream(const char *initialString, int area=0, int level=1, bool print=true)
LifeV::DebugStream & endl(LifeV::DebugStream &s)