abumq / easyloggingpp

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.79k stars 927 forks source link

compiling error about DVLOG in release mode #766

Open yxtj opened 4 years ago

yxtj commented 4 years ago

Code like: DVLOG(2)<<"abc"; does not compile in the release mode. The error message says: DVLOG is not declared. This code works in the debug mode.

But DLOG works in both mode. In the glog library, DVLOG compiles in both modes.

I encounter this problem with easyloggingpp 9.96.7. I tried multiple CMake versions on both Windows and Linux. So I think it is a bug of easyloggingpp.