blob: f2b8bd250819f70364f49bc1c009df7d7ecbffc8 [file] [log] [blame]
akmhoque3d06e792014-05-27 16:23:20 -05001/* -*- 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 **/
akmhoque674b0b12014-05-20 14:33:28 -050023#include "conf-parameter.hpp"
24#include "logger.hpp"
25
26namespace nlsr {
27
28INIT_LOGGER("ConfParameter");
29
30void
31ConfParameter::writeLog()
32{
33 _LOG_DEBUG("Router Name: " << m_routerName);
34 _LOG_DEBUG("Site Name: " << m_siteName);
35 _LOG_DEBUG("Network: " << m_network);
36 _LOG_DEBUG("Router Prefix: " << m_routerPrefix);
Vince Lehman7b616582014-10-17 16:25:39 -050037 _LOG_DEBUG("ChronoSync sync Prefix: " << m_chronosyncPrefix);
akmhoque674b0b12014-05-20 14:33:28 -050038 _LOG_DEBUG("ChronoSync LSA prefix: " << m_lsaPrefix);
Alexander Afanasyev411ee4b2014-08-16 23:17:03 -070039 _LOG_DEBUG("Hello Interest retry number: " << m_interestRetryNumber);
40 _LOG_DEBUG("Hello Interest resend second: " << m_interestResendTime);
41 _LOG_DEBUG("Info Interest interval: " << m_infoInterestInterval);
akmhoque674b0b12014-05-20 14:33:28 -050042 _LOG_DEBUG("LSA refresh time: " << m_lsaRefreshTime);
Alexander Afanasyev411ee4b2014-08-16 23:17:03 -070043 _LOG_DEBUG("LSA Interest lifetime: " << getLsaInterestLifetime());
akmhoque674b0b12014-05-20 14:33:28 -050044 _LOG_DEBUG("Max Faces Per Prefix: " << m_maxFacesPerPrefix);
Vince Lehman7b616582014-10-17 16:25:39 -050045 _LOG_DEBUG("Hyperbolic Routing: " << m_hyperbolicState);
akmhoque674b0b12014-05-20 14:33:28 -050046 _LOG_DEBUG("Hyp R: " << m_corR);
47 _LOG_DEBUG("Hyp theta: " << m_corTheta);
48 _LOG_DEBUG("Log Directory: " << m_logDir);
49 _LOG_DEBUG("Seq Directory: " << m_seqFileDir);
Vince Lehman7b616582014-10-17 16:25:39 -050050
51 // Event Intervals
52 _LOG_DEBUG("Adjacency LSA build interval: " << m_adjLsaBuildInterval);
53 _LOG_DEBUG("First Hello Interest interval: " << m_firstHelloInterval);
54 _LOG_DEBUG("Routing calculation interval: " << m_routingCalcInterval);
akmhoque674b0b12014-05-20 14:33:28 -050055}
56
57} // namespace nlsr