core: Implementation of the logging module for NFD

ref: #1113

Change-Id: Ifb958ace38610b154841aab4f317b2ea9fde46e9