|
| enum | TraceDestination { STDOUT,
FILE,
SYSLOG,
SIMPLE
} |
| | Enumeration of possible output destinations. More...
|
| |
| enum | TraceLevel {
TRACE0 = 1,
TRACE1 = 1,
TRACE2 = 2,
TRACE3 = 3,
TRACE4 = 4,
TRACE5 = 5,
TRACE6 = 6,
TRACE7 = 7,
TRACEALL = 7
} |
| | These values are the indices for the private priorities array, which corresponds directly to log4cpp/Priority.hh TRACE0 corresponds to the most critical level trace messages (the least verbose), TRACE7 the least critical (most verbose) messages, usually used for intense debugging. More...
|
| |
|
| TraceDestination | getDestination () const |
| |
| void | setObjectTraceLevel (const TraceLevel traceLevel) |
| | method allowing traceLevel to be modified More...
|
| |
| | Trace (TraceLevel traceLevel, const std::string &traceDestination, bool traceVerbose=true, const std::string &objectName="Trace", carma::util::facilityType facility=DEFAULT_FACILITY) |
| | Constructor. More...
|
| |
|
bool | willWrite (TraceLevel traceLevel) const |
| |
| void | write (TraceLevel traceLevel, const std::string &debugMessage) |
| | Generic output method, output will go to destination specified in constructor. More...
|
| |
| void | write (TraceLevel traceLevel, const std::ostringstream &debugMessage) |
| | Generic output method, output will go to destination specified in constructor. More...
|
| |
| void | writeFile (const std::string &debugMessage) |
| | Send trace messages to a file. More...
|
| |
| void | writeFile (const std::ostringstream &debugMessage) |
| | Send trace messages to a file. More...
|
| |
| void | writeStdout (const std::string &debugMessage) |
| | Send trace messages to standard output. More...
|
| |
| void | writeStdout (const std::ostringstream &debugMessage) |
| | Send trace messages to standard output. More...
|
| |
| void | writeSysLog (const std::string &debugMessage) |
| | Send trace messages to syslog. More...
|
| |
| void | writeSysLog (const std::ostringstream &debugMessage) |
| | Send trace messages to syslog. More...
|
| |
The Trace class provides an efficient means for managing debug statements throughout CARMA code.
We want to be able to trace execution of a program through output statements, but be able to modify at compile and/or runtime which statements get printed. The Trace object would be assigned a debug level'' via a command-line parameter. Each debug message would also be assigned adebug level'', so that message generation will depend on the level of the Trace object. Compile-time switches would also be available to reduce the runtime overhead.
Definition at line 97 of file Trace.h.