akmhoque | 3d06e79 | 2014-05-27 16:23:20 -0500 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (c) 2014 University of Memphis, |
| 4 | * Regents of the University of California |
| 5 | * |
| 6 | * This file is part of NLSR (Named-data Link State Routing). |
| 7 | * See AUTHORS.md for complete list of NLSR authors and contributors. |
| 8 | * |
| 9 | * NLSR is free software: you can redistribute it and/or modify it under the terms |
| 10 | * of the GNU General Public License as published by the Free Software Foundation, |
| 11 | * either version 3 of the License, or (at your option) any later version. |
| 12 | * |
| 13 | * NLSR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 14 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 15 | * PURPOSE. See the GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along with |
| 18 | * NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 19 | * |
| 20 | * \author A K M Mahmudul Hoque <ahoque1@memphis.edu> |
| 21 | * |
| 22 | **/ |
Muktadir R Chowdhury | bfa2760 | 2014-10-31 10:57:41 -0500 | [diff] [blame^] | 23 | |
akmhoque | 674b0b1 | 2014-05-20 14:33:28 -0500 | [diff] [blame] | 24 | #include "conf-parameter.hpp" |
| 25 | #include "logger.hpp" |
| 26 | |
| 27 | namespace nlsr { |
| 28 | |
| 29 | INIT_LOGGER("ConfParameter"); |
| 30 | |
| 31 | void |
| 32 | ConfParameter::writeLog() |
| 33 | { |
| 34 | _LOG_DEBUG("Router Name: " << m_routerName); |
| 35 | _LOG_DEBUG("Site Name: " << m_siteName); |
| 36 | _LOG_DEBUG("Network: " << m_network); |
| 37 | _LOG_DEBUG("Router Prefix: " << m_routerPrefix); |
Vince Lehman | 7b61658 | 2014-10-17 16:25:39 -0500 | [diff] [blame] | 38 | _LOG_DEBUG("ChronoSync sync Prefix: " << m_chronosyncPrefix); |
akmhoque | 674b0b1 | 2014-05-20 14:33:28 -0500 | [diff] [blame] | 39 | _LOG_DEBUG("ChronoSync LSA prefix: " << m_lsaPrefix); |
Alexander Afanasyev | 411ee4b | 2014-08-16 23:17:03 -0700 | [diff] [blame] | 40 | _LOG_DEBUG("Hello Interest retry number: " << m_interestRetryNumber); |
| 41 | _LOG_DEBUG("Hello Interest resend second: " << m_interestResendTime); |
| 42 | _LOG_DEBUG("Info Interest interval: " << m_infoInterestInterval); |
akmhoque | 674b0b1 | 2014-05-20 14:33:28 -0500 | [diff] [blame] | 43 | _LOG_DEBUG("LSA refresh time: " << m_lsaRefreshTime); |
Alexander Afanasyev | 411ee4b | 2014-08-16 23:17:03 -0700 | [diff] [blame] | 44 | _LOG_DEBUG("LSA Interest lifetime: " << getLsaInterestLifetime()); |
Alexander Afanasyev | 1cf1e10 | 2014-08-17 19:47:57 -0700 | [diff] [blame] | 45 | _LOG_DEBUG("Router dead interval: " << getRouterDeadInterval()); |
akmhoque | 674b0b1 | 2014-05-20 14:33:28 -0500 | [diff] [blame] | 46 | _LOG_DEBUG("Max Faces Per Prefix: " << m_maxFacesPerPrefix); |
Vince Lehman | 7b61658 | 2014-10-17 16:25:39 -0500 | [diff] [blame] | 47 | _LOG_DEBUG("Hyperbolic Routing: " << m_hyperbolicState); |
akmhoque | 674b0b1 | 2014-05-20 14:33:28 -0500 | [diff] [blame] | 48 | _LOG_DEBUG("Hyp R: " << m_corR); |
| 49 | _LOG_DEBUG("Hyp theta: " << m_corTheta); |
| 50 | _LOG_DEBUG("Log Directory: " << m_logDir); |
| 51 | _LOG_DEBUG("Seq Directory: " << m_seqFileDir); |
Vince Lehman | 7b61658 | 2014-10-17 16:25:39 -0500 | [diff] [blame] | 52 | |
| 53 | // Event Intervals |
| 54 | _LOG_DEBUG("Adjacency LSA build interval: " << m_adjLsaBuildInterval); |
| 55 | _LOG_DEBUG("First Hello Interest interval: " << m_firstHelloInterval); |
| 56 | _LOG_DEBUG("Routing calculation interval: " << m_routingCalcInterval); |
akmhoque | 674b0b1 | 2014-05-20 14:33:28 -0500 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | } // namespace nlsr |