mirror of
https://github.com/vgough/encfs.git
synced 2024-11-26 01:43:39 +01:00
25 lines
545 B
C++
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;
|
||
|
}
|