C++ logging library. It is powerful, supports asynchronous low latency, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.
MIT License
3.76k
stars
921
forks
source link
V8.91 won't compile without C++11 on Ubuntu Linux #265
I want to use the library without C++11 but it won't compile for me:
(Theoretically it should as per documentation @http://easylogging.muflihun.com:
"For lower version of C++ (non-C++11), please consider using Easylogging++ v8.91. ")
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
File structure:
./Main.cpp
./logger/easylogging++.h
Contents of Main.cpp:
include "logger/easylogging++.h"
_INITIALIZE_EASYLOGGINGPP
using namespace std;
int main(int argc, char* argv[]) {
LINFO << "This is my first log";
return 0;
}
../src/logger/easylogging++.h: In function ‘std::string easyloggingpp::internal::threading::getCurrentThreadId()’:
../src/logger/easylogging++.h:691:16: error: ‘std::this_thread’ has not been declared
ss << std::this_thread::get_id();
I want to use the library without C++11 but it won't compile for me: (Theoretically it should as per documentation @http://easylogging.muflihun.com: "For lower version of C++ (non-C++11), please consider using Easylogging++ v8.91. ")
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
File structure:
./Main.cpp ./logger/easylogging++.h
Contents of Main.cpp:
include "logger/easylogging++.h"
_INITIALIZE_EASYLOGGINGPP using namespace std;
int main(int argc, char* argv[]) { LINFO << "This is my first log"; return 0; }
../src/logger/easylogging++.h: In function ‘std::string easyloggingpp::internal::threading::getCurrentThreadId()’: ../src/logger/easylogging++.h:691:16: error: ‘std::this_thread’ has not been declared ss << std::this_thread::get_id();