Sha256: 2edffae22826cf4fc55d0066346aa03cb3d3cbca9332bdc2914c399580de4446
Contents?: true
Size: 1001 Bytes
Versions: 76
Compression:
Stored size: 1001 Bytes
Contents
#include "../RhoLog.h" #undef DEFAULT_LOGCATEGORY #define DEFAULT_LOGCATEGORY "PlainC" void testTraceIf(){ int i = 0; RAWTRACE_IF(i==0,"Conditional trace"); i = 1; RAWTRACE_IF(i==0,"ERROR: Conditional trace"); i = 2; RAWTRACE_IF1(i==2,"Conditional trace : %s", "Param1"); } void testPlainLog(){ RAWTRACE("RAW: Trace 1"); RAWTRACE1("RAW: Trace %d", 2); RAWTRACE2("RAW: Trace %d : %d", 3,4); RAWTRACEC("CatRaw1", "RAW: Trace categorized"); RAWTRACEC1("CatRaw1", "RAW: Trace categorized: %d", 34); RAWTRACEC2("CatRaw1", "RAW: Trace categorized %s : %d", "34", 56); RAWLOG_INFO("RAW: Info 1"); RAWLOG_INFO1("RAW: Info %d", 55); RAWLOG_INFO2("RAW: Info %d:%d", 55, 66); RAWLOGC_INFO("CatRaw2", "RAW: Info categorized"); RAWLOGC_INFO1("CatRaw2", "RAW: Info categorized : %d", 66); RAWLOGC_INFO2("CatRaw2", "RAW: Info categorized : %d:%d", 66, 77); testTraceIf(); //RHO_ASSERT(0); //RHO_ASSERTS(0,"Too bad!"); }
Version data entries
76 entries across 76 versions & 1 rubygems