Skip to content

Commit

Permalink
Add manual prefix printout example
Browse files Browse the repository at this point in the history
  • Loading branch information
nadrino committed Aug 31, 2020
1 parent 9546143 commit 5c5c3a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5c5c3a9

Please sign in to comment.