Skip to content

ShpakovDmitry/SimpleLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple logger library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages