diff --git a/reference/Log/Log.upp b/reference/Log/Log.upp index 91bfbdc8b..18882c134 100644 --- a/reference/Log/Log.upp +++ b/reference/Log/Log.upp @@ -1,4 +1,4 @@ -description "Using diagnostic logs"; +description "Using diagnostic logs\377"; uses Core; diff --git a/reference/Log/init b/reference/Log/init new file mode 100644 index 000000000..da3eed7a2 --- /dev/null +++ b/reference/Log/init @@ -0,0 +1,4 @@ +#ifndef _Log_icpp_init_stub +#define _Log_icpp_init_stub +#include "Core/init" +#endif diff --git a/reference/Log/log.cpp b/reference/Log/log.cpp index e8d30aa1a..2d312c948 100644 --- a/reference/Log/log.cpp +++ b/reference/Log/log.cpp @@ -20,12 +20,27 @@ CONSOLE_APP_MAIN DUMP(i); LOGEND(); DUMP(Foo(1)); + Vector x; x.Add("One"); x.Add("Two"); x.Add("Three"); DUMPC(x); + + VectorMap y; + y.Add("Key1", "Value1"); + y.Add("Key2", "Value2"); + DUMPC(y); + static char h[200] = "alsjkdfhlaksjdhfklajshdfklj"; LOGHEXDUMP(h, 200); - RLOG("This will appear even in the release mode"); + + String s = "Some text for hex dumps"; + LOGHEX(s); + DUMPHEX(s); + + RLOG("Prepending 'R' forces log even in the release mode"); + + // You need to comment out following line in order to compile in release mode + DLOG("Prepending 'D' issues error when compiled in release mode. This is to avoid forgotten debug logs"); }