SampleTracer uses a Logger to log messages about samples as they are encountered in the code.
The samples are selected by ID using a SampleMatcher, whose criteria are specified in the 'trace_samples' log parameter.
Format a basic log message tracing the given the sample, using text as a prefix, then return a reference to this instance's LogMessage so more information can be streamed to it.
The 'endlog' manipulator must be streamed to the return value to actually log the message. For example:
...
if (st.active(samp))
st.msg(samp, "received") << endlog;
SampleTracer uses a Logger to log messages about samples as they are encountered in the code.
Definition SampleTracer.h:23
Sample * getSample(sampleType type, unsigned int len)
A convienence method for getting a sample of an enumerated type from a pool.
Definition Sample.cc:70
With no arguments, no message is added, just the LogMessage reference is returned, allowing more information to be streamed to an existing message.
References _msg, format_time(), GET_DSM_ID, and GET_SPS_ID.