*/
#include "internal.h"
+#include "logging.h"
#include "util/NDC.h"
-#include <log4cpp/NDC.hh>
+#if defined(XMLTOOLING_LOG4SHIB)
+# include <log4shib/NDC.hh>
+#elif defined(XMLTOOLING_LOG4CPP)
+# include <log4cpp/NDC.hh>
+#endif
using namespace xmltooling;
NDC::NDC(const char* context)
{
- log4cpp::NDC::push(context);
+ logging::NDC::push(context);
}
NDC::NDC(const std::string& context)
{
- log4cpp::NDC::push(context);
+ logging::NDC::push(context);
}
NDC::~NDC()
{
- log4cpp::NDC::pop();
+ logging::NDC::pop();
}