Ilya Moiseenko | a807e65 | 2014-01-28 11:51:01 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | * |
| 6 | * Author: Ilya Moiseenko <iliamo@ucla.edu> |
| 7 | */ |
| 8 | |
| 9 | #include "logger.hpp" |
| 10 | |
| 11 | namespace nfd |
| 12 | { |
| 13 | |
| 14 | Logger::Logger(const std::string& name) |
| 15 | : m_moduleName(name), |
| 16 | m_isEnabled(true) |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | std::ostream& |
| 21 | operator<<(std::ostream& output, const Logger& obj) |
| 22 | { |
| 23 | output << obj.getName(); |
| 24 | return output; |
| 25 | } |
| 26 | |
| 27 | } // namespace nfd |