#define ELPP_STL_LOGGING // #define ELPP_FEATURE_CRASH_LOG -- Stack trace not available for MinGW GCC #define ELPP_PERFORMANCE_MICROSECONDS #define ELPP_LOG_STD_ARRAY #define ELPP_LOG_UNORDERED_MAP #define ELPP_UNORDERED_SET #include "easylogging++.h" INITIALIZE_EASYLOGGINGPP TIMED_SCOPE(appTimer, "myapplication"); int main(int argc, const char* argv[]) { el::Loggers::removeFlag(el::LoggingFlag::AllowVerboseIfModuleNotSpecified); TIMED_BLOCK(itr, "write-simple") { LOG(INFO) << "Test " << __FILE__; } VLOG(3) << "Test"; }