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

25 lines
545 B
C++

//
// This file is part of Easylogging++ samples
//
// Very basic sample to configure using global configuration (el::Loggers::configureFromGlobal)
//
// Revision 1.1
// @author mkhan3189
//
#include "easylogging++.h"
INITIALIZE_EASYLOGGINGPP
int main(void) {
LOG(INFO) << "Info log before using global configuration";
el::Loggers::configureFromGlobal("../global.conf");
LOG(INFO) << "Info log AFTER using global configuration";
LOG(ERROR) << "Error log AFTER using global configuration";
return 0;
}