Files
NFD/daemon/core/logger.cpp
T
Ilya Moiseenko a807e6530b core: Implementation of the logging module for NFD
ref: #1113

Change-Id: Ifb958ace38610b154841aab4f317b2ea9fde46e9
2014-01-30 13:33:10 -08:00

28 lines
496 B
C++

/* -*- 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