encfs/vendor/github.com/muflihun/easyloggingpp/samples/MinGW/prog.cpp
Valient Gough 5f0806c5cc Add "easylogging" from "https://github.com/muflihun/easyloggingpp@master"
git-vendor-name: easylogging
git-vendor-dir: vendor/github.com/muflihun/easyloggingpp
git-vendor-repository: https://github.com/muflihun/easyloggingpp
git-vendor-ref: master
2017-08-05 23:23:41 -07:00

22 lines
555 B
C++

#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";
}