Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 913 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 913 Bytes

Simple logging library.

Installation

Simply copy SimpleLogger directory into projects directory.

Usage

// your main.cpp file

#include "SimpleLogger/logger"

int main(int argc, char *argv[]) {
    LOG(INFO) << "informational message";
    LOG(WARN) << "warning message";
    LOG(SUCC) << "success message";
    LOG(FAIL) << "failure message";

    constexpr float PI = 3.1415926f;
    LOG(INFO) << "The value of PI = " << PI;

    return 0;
}

The output generated is:

10:42:10 INFO informational message
10:42:10 WARN warning message
10:42:10 SUCC success message
10:42:10 FAIL failure message
10:42:10 INFO The value of PI = 3.14159

Dependencies

The library is dependant on the following libraries: ctime, iostream, string.

License

The library is provided under CC0 terms, meaning that No Rights are reserved and do whatever you want with this library.