Include other log library (i.e. log4cxx) when using mxnet cpp-package

Hi, I got a problem when writing a C++ program that needs to run mxnet model and save log messages with a 3rdparty log library.

The mxnet cpp header files include dmlc/logging.h which defines a lot of macros like “LOG”, “CHECK”, “LOG_ERROR” and so on. While at the same time, the log library that I use in my own code also defines similar macros which will produce redefinition errors during compilation.

In my case, I do not want to use dmlc/logging.h in my own application since I need some special logging features and customizations. Thus, I can’t use the same logging apis as mxnet in my code.