Cpp easylogging++

From wikinotes

Easylogging is a library that enables simple, efficient, and colourized logging. It is composed of only a single header-file, so that you can quickly drop it into a project if it is needed.


Basic Usage

INITIALIZE_EASYLOGGINGPP should only be used once per program. It is recommended that you run it right before your program's int main() function.

#include "easylogging.h"

INITIALIZE_EASYLOGGINGPP

int main() {
	el::Loggers::addFlag( el::LoggingFlag::ColoredTerminalOutput );

	LOG(INFO)    <<  "test message";
	LOG(WARNING) <<  "test message";
	LOG(ERROR)   <<  "test message";
	LOG(DEBUG)   <<  "test message"; // note that debug messages output additional information

}

Log Config