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
36 lines
939 B
C++
36 lines
939 B
C++
//
|
|
// This file is part of Easylogging++ samples
|
|
// Demonstration of auto spacing functionality
|
|
//
|
|
// Revision 1.2
|
|
// @author mkhan3189
|
|
//
|
|
|
|
#include "easylogging++.h"
|
|
|
|
INITIALIZE_EASYLOGGINGPP
|
|
|
|
int main(void) {
|
|
|
|
LOG(INFO) << "this" << "is" << "a" << "message";
|
|
std::string str = "-sample-";
|
|
std::wstring wstr = L"-wsample-";
|
|
const char* chr = "-csample-";
|
|
const wchar_t* wchr = L"-wcsample-";
|
|
LOG(INFO) << str << str << str << str;
|
|
LOG(INFO) << wstr << wstr << wstr << wstr;
|
|
LOG(INFO) << chr << chr << chr << chr;
|
|
LOG(INFO) << wchr << wchr << wchr << wchr;
|
|
|
|
// ---- THIS IS MAGIC
|
|
el::Loggers::addFlag(el::LoggingFlag::AutoSpacing);
|
|
|
|
LOG(INFO) << "this" << "is" << "a" << "message";
|
|
LOG(INFO) << str << str << str << str;
|
|
LOG(INFO) << wstr << wstr << wstr << wstr;
|
|
LOG(INFO) << chr << chr << chr << chr;
|
|
LOG(INFO) << wchr << wchr << wchr << wchr;
|
|
|
|
return 0;
|
|
}
|