Adding experimental (and optional) support of log4cxx logging.
Also, adding a sample logging configuration
diff --git a/model/sync-ccnx-wrapper.cc b/model/sync-ccnx-wrapper.cc
index d531971..0fdff74 100644
--- a/model/sync-ccnx-wrapper.cc
+++ b/model/sync-ccnx-wrapper.cc
@@ -21,14 +21,19 @@
*/
#include "sync-ccnx-wrapper.h"
+#include "sync-log.h"
#include <poll.h>
#include <boost/throw_exception.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
+
typedef boost::error_info<struct tag_errmsg, std::string> errmsg_info_str;
typedef boost::error_info<struct tag_errmsg, int> errmsg_info_int;
using namespace std;
using namespace boost;
+INIT_LOGGER ("CcnxWrapper");
+
namespace Sync {
#ifdef _DEBUG_WRAPPER_
@@ -113,6 +118,7 @@
void
CcnxWrapper::ccnLoop ()
{
+ _LOG_FUNCTION (this);
while (m_running)
{