34 #ifndef INTEGRA_TRACING_PRIVATE
35 #define INTEGRA_TRACING_PRIVATE
43 #define STRINGIFY(x) #x
45 #define TOSTRING(x) STRINGIFY(x)
48 #define INTEGRA_FUNCTION __FUNCTION__
51 #define INTEGRA_FUNCTION TOSTRING(__FUNCTION__)
55 #define INTEGRA_LOCATION __FILE__ ": " TOSTRING(__LINE__) "(" INTEGRA_FUNCTION ")"
66 #define INTEGRA_TRACE_ERROR integra_api::CTrace::error( INTEGRA_LOCATION )
74 #define INTEGRA_TRACE_PROGRESS integra_api::CTrace::progress( INTEGRA_LOCATION )
86 #define INTEGRA_TRACE_VERBOSE integra_api::CTrace::verbose( INTEGRA_LOCATION )
113 static void set_categories_to_trace(
bool errors,
bool progress,
bool verbose );
123 static void set_details_to_trace(
bool timestamp,
bool location,
bool thread );
126 static std::ostream &error(
const char *location );
129 static std::ostream &progress(
const char *location );
132 static std::ostream &verbose(
const char *location );
136 static void do_trace(
const char *category,
const char *location );
138 static bool s_trace_errors;
139 static bool s_trace_progress;
140 static bool s_trace_verbose;
142 static bool s_trace_timestamp;
143 static bool s_trace_location;
144 static bool s_trace_thread;
146 static std::ostream &s_trace_stream;
147 static std::ofstream s_null_stream;
149 static const int max_timestamp_length;
Handles console output.
Definition: trace.h:105
#defines and typedefs used throughout the application