Skip to content

Beginner Guide

YusufSuleman edited this page Aug 2, 2021 · 3 revisions

Running The Example Log

  1. Click "Code" on the main repo page.
  2. Open your project in your IDE.
  3. Make a folder called "include" or anything else.
a. Check if you have to add an include directory in your IDE.

b. If yes, then add the folder you created.
  1. In the C++ file you are adding it to, write #include "cutelog.h" on the top.
  2. Write the function cuteLogExample() in the int main function.
  3. Run it!
  4. See the console for coloured text that says "ERROR".
  5. If you succeeded the last step it is done.
  6. Read the wiki of this repo.

Logging

  1. Write error("Wiki"); To log an Error that says "Wiki".
  2. Change it by editing "Wiki" to anything, you want.
  3. Version 1 does not support multiline Errors but Version 2 does with using errorMultiline();, infoMultiline(); or warningMultiline();, below normal log function.
  4. Now write info("Info"); or warning("Warning"); to log an Info or Warning in the log.
  5. You are now done. Start logging on your own.

Light Mode (Not Done.).

Wait till Version 3 for this feature.

Clone this wiki locally