core: Implementation of the logging module for NFD

ref: #1113

Change-Id: Ifb958ace38610b154841aab4f317b2ea9fde46e9
diff --git a/daemon/core/logger.cpp b/daemon/core/logger.cpp
new file mode 100644
index 0000000..14dd380
--- /dev/null
+++ b/daemon/core/logger.cpp
@@ -0,0 +1,27 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
+/*
+ * Copyright (C) 2014 Named Data Networking Project
+ * See COPYING for copyright and distribution information.
+ *
+ * Author: Ilya Moiseenko <iliamo@ucla.edu>
+ */
+
+#include "logger.hpp"
+
+namespace nfd
+{
+
+Logger::Logger(const std::string& name)
+  : m_moduleName(name),
+    m_isEnabled(true)
+{
+}
+
+std::ostream&
+operator<<(std::ostream& output, const Logger& obj)
+{
+  output << obj.getName();
+  return output;
+}
+
+} // namespace nfd