From 5c5c3a97af2282aa50f7d7f7b209016176c9f25e Mon Sep 17 00:00:00 2001 From: Adrien BLANCHET Date: Mon, 31 Aug 2020 13:54:14 +0200 Subject: [PATCH] Add manual prefix printout example --- example/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/main.cpp b/example/main.cpp index 595d4ba..ea37fd0 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -125,12 +125,16 @@ int main(){ #ifdef DEBUG_EXAMPLE + Logger::setEnableColors(true); + // dirty examples for debugging purposes LogInfo("test %i\nline %i\nnext %i\n", 0, 1, 2); LogInfo << "test \nlast line is\nempty\n"; LogInfo << "lol " << 3.14 << " ptr=" << i_ptr << std::endl; LogInfo << "lol %i" << std::endl; + std::cout << Logger::getPrefixString(LogWarning) << "Manual printout" << std::endl; + Logger::quietLineJump(); #endif