mirror of
https://github.com/vgough/encfs.git
synced 2024-12-22 06:30:48 +01:00
5f0806c5cc
git-vendor-name: easylogging git-vendor-dir: vendor/github.com/muflihun/easyloggingpp git-vendor-repository: https://github.com/muflihun/easyloggingpp git-vendor-ref: master
26 lines
748 B
C++
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;
|
|
}
|