util: Allow customization of the logger

The customization is necessary for Android and NS-3 builds

Change-Id: I8f799bfae63bd97c566eade812c575a7397ae223
diff --git a/src/util/logger.hpp b/src/util/logger.hpp
index 4f0c35b..e9efba9 100644
--- a/src/util/logger.hpp
+++ b/src/util/logger.hpp
@@ -24,6 +24,10 @@
 
 #include "../common.hpp"
 
+#ifdef HAVE_NDN_CXX_CUSTOM_LOGGER
+#include "ndn-cxx-custom-logger.hpp"
+#else
+
 #include <boost/log/common.hpp>
 #include <boost/log/sources/logger.hpp>
 #include <atomic>
@@ -164,4 +168,6 @@
 } // namespace util
 } // namespace ndn
 
+#endif // HAVE_NDN_CXX_CUSTOM_LOGGER
+
 #endif // NDN_UTIL_LOGGER_HPP
diff --git a/src/util/logging.hpp b/src/util/logging.hpp
index 96e1bcb..45dbe07 100644
--- a/src/util/logging.hpp
+++ b/src/util/logging.hpp
@@ -24,6 +24,10 @@
 
 #include "../common.hpp"
 
+#ifdef HAVE_NDN_CXX_CUSTOM_LOGGER
+#include "ndn-cxx-custom-logging.hpp"
+#else
+
 #include <boost/log/sinks.hpp>
 #include <mutex>
 #include <unordered_map>
@@ -184,4 +188,6 @@
 } // namespace util
 } // namespace ndn
 
+#endif // HAVE_NDN_CXX_CUSTOM_LOGGER
+
 #endif // NDN_UTIL_LOGGING_HPP