encfs/vendor/github.com/muflihun/easyloggingpp/samples/STL/verbose.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

26 lines
748 B
C++

//
// This file is part of EasyLogging++ samples
// Demonstration of verbose logging
//
// Revision 1.0
// @author mkhan3189
//
#include "easylogging++.h"
INITIALIZE_EASYLOGGINGPP
int main(int argc, char** argv) {
START_EASYLOGGINGPP(argc, argv);
LOG(INFO) << "This is demo for verbose logs";
VLOG(1) << "This will be printed when program is started using argument --v=1";
VLOG(2) << "This will be printed when program is started using argument --v=2";
VLOG(1) << "This will be printed when program is started using argument --v=1";
VLOG_IF(true, 1) << "Always verbose for level 1";
VLOG_EVERY_N(1, 3) << "Verbose every N";
VLOG(4) << "Command line arguments provided " << *el::Helpers::commandLineArgs();
return 0;
}