mirror of
https://github.com/vgough/encfs.git
synced 2025-01-26 15:48:34 +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
32 lines
753 B
C++
32 lines
753 B
C++
//
|
|
// This file is part of Easylogging++ samples
|
|
// Very basic sample for Logger::info etc
|
|
//
|
|
// Revision 1.0
|
|
// @author mkhan3189
|
|
//
|
|
|
|
#include "easylogging++.h"
|
|
|
|
INITIALIZE_EASYLOGGINGPP
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
START_EASYLOGGINGPP(argc, argv);
|
|
|
|
el::Logger* defaultLogger = el::Loggers::getLogger("default");
|
|
|
|
std::vector<int> i;
|
|
i.push_back(1);
|
|
i.push_back(2);
|
|
defaultLogger->warn("My first ultimate log message %v %v %v", 123, 222, i);
|
|
|
|
// Escaping
|
|
defaultLogger->info("My first ultimate log message %% %%v %v %v", 123, 222); // My first ultimate log message % %v 123 222
|
|
|
|
defaultLogger->verbose(1, "test verbose");
|
|
defaultLogger->verbose(1, "test verbose with args %v", 2);
|
|
|
|
return 0;
|
|
}
|