Handles console output. More...
#include "api/trace.h"
Static Public Member Functions | |
static void | set_categories_to_trace (bool errors, bool progress, bool verbose) |
Customise the types of message which should be traced. More... | |
static void | set_details_to_trace (bool timestamp, bool location, bool thread) |
Customise the additional information which should be written with each message. More... | |
static std::ostream & | error (const char *location) |
static std::ostream & | progress (const char *location) |
static std::ostream & | verbose (const char *location) |
Handles console output.
libIntegra handles errors and reports progress by writing to the console. This is done by the macros INTEGRA_TRACE_ERROR, INTEGRA_TRACE_PROGRESS and INTEGRA_TRACE_VERBOSE, which in turn call methods in CTrace
CTrace is exposed in libIntegra's api in order to allow users of the api to customise what is traced.
|
static |
Internal use only
|
static |
Internal use only
|
static |
Customise the types of message which should be traced.
By default, errors and progress are traced, verbose messages are not
|
static |
Customise the additional information which should be written with each message.
By default, messages are stamped with time and location, but not thread ID.
timestamp | Write the date/time into each message |
location | Write the source file, line number and function name into each message |
thread | Write id of the currently executing thread into each message |
|
static |
Internal use only