akmhoque | 3d06e79 | 2014-05-27 16:23:20 -0500 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Nick Gordon | feae557 | 2017-01-13 12:06:26 -0600 | [diff] [blame] | 3 | * Copyright (c) 2014-2017, The University of Memphis, |
Nick Gordon | f8b5bcd | 2016-08-11 15:06:50 -0500 | [diff] [blame] | 4 | * Regents of the University of California |
akmhoque | 3d06e79 | 2014-05-27 16:23:20 -0500 | [diff] [blame] | 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 | { |
Nick Gordon | f8852c2 | 2017-05-25 10:07:20 -0500 | [diff] [blame] | 34 | _LOG_INFO("Router Name: " << m_routerName); |
| 35 | _LOG_INFO("Site Name: " << m_siteName); |
| 36 | _LOG_INFO("Network: " << m_network); |
| 37 | _LOG_INFO("Router Prefix: " << m_routerPrefix); |
| 38 | _LOG_INFO("ChronoSync sync Prefix: " << m_chronosyncPrefix); |
| 39 | _LOG_INFO("ChronoSync LSA prefix: " << m_lsaPrefix); |
| 40 | _LOG_INFO("Hello Interest retry number: " << m_interestRetryNumber); |
| 41 | _LOG_INFO("Hello Interest resend second: " << m_interestResendTime); |
| 42 | _LOG_INFO("Info Interest interval: " << m_infoInterestInterval); |
| 43 | _LOG_INFO("LSA refresh time: " << m_lsaRefreshTime); |
| 44 | _LOG_INFO("FIB Entry refresh time: " << m_lsaRefreshTime * 2); |
| 45 | _LOG_INFO("LSA Interest lifetime: " << getLsaInterestLifetime()); |
| 46 | _LOG_INFO("Router dead interval: " << getRouterDeadInterval()); |
| 47 | _LOG_INFO("Max Faces Per Prefix: " << m_maxFacesPerPrefix); |
| 48 | _LOG_INFO("Hyperbolic Routing: " << m_hyperbolicState); |
| 49 | _LOG_INFO("Hyp R: " << m_corR); |
| 50 | _LOG_INFO("Hyp theta: " << m_corTheta); |
| 51 | _LOG_INFO("Log Directory: " << m_logDir); |
| 52 | _LOG_INFO("Seq Directory: " << m_seqFileDir); |
Vince Lehman | 7b61658 | 2014-10-17 16:25:39 -0500 | [diff] [blame] | 53 | |
| 54 | // Event Intervals |
Nick Gordon | f8852c2 | 2017-05-25 10:07:20 -0500 | [diff] [blame] | 55 | _LOG_INFO("Adjacency LSA build interval: " << m_adjLsaBuildInterval); |
| 56 | _LOG_INFO("First Hello Interest interval: " << m_firstHelloInterval); |
| 57 | _LOG_INFO("Routing calculation interval: " << m_routingCalcInterval); |
akmhoque | 674b0b1 | 2014-05-20 14:33:28 -0500 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | } // namespace nlsr |