#define UNILOG_TRACING_ON
#include "../source/Server/UnilogClient.h"
#include "../source/Server/UnilogClient.cpp"
void function_with_no_trace()
{
// UNILOG_DISABLE_AUTO_TRACE is a macro to prevent automatic traces
// inserted by the trace inserter utility.
// Put this in your function as a first line of code to hint the
// trace inserter that the function should not be modified:
UNILOG_DISABLE_AUTO_TRACE;
}
int main()
{
UNILOG_AUTO_TRACE( 1 );
UNILOG_TRACE( "Example of UNILOG_TRACE message" );
// You can create unique address-based variable named UNILOG_ID:
DECLARE_UNILOG_ID;
UNILOG_ID_TRACE( UNILOG_ID, "Example of UNILOG_ID_TRACE message" );
UNILOG_ID_TRACE( 10, "Example of UNILOG_ID_TRACE message" );
UNILOG_EVENT( UNILOG_BLOCK_TYPE_CHECKPOINT );
UNILOG_EVENT( UNILOG_BLOCK_TYPE_ALERT );
UNILOG_ID_EVENT( UNILOG_ID, UNILOG_BLOCK_TYPE_CHECKPOINT );
UNILOG_ID_EVENT( UNILOG_ID, UNILOG_BLOCK_TYPE_ALERT );
UNILOG_ID_EVENT( 10, UNILOG_BLOCK_TYPE_CHECKPOINT );
UNILOG_ID_EVENT( 10, UNILOG_BLOCK_TYPE_ALERT );
function_with_no_trace();
}