From ff9be7595d0117fe6c03de084f32463e402bfafe Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Fri, 19 Jun 2009 20:26:51 -0700 Subject: [PATCH] WifiHelper method to enable all Wifi logging --- src/helper/wifi-helper.cc | 35 +++++++++++++++++++++++++++++++++++ src/helper/wifi-helper.h | 5 +++++ 2 files changed, 40 insertions(+) diff --git a/src/helper/wifi-helper.cc b/src/helper/wifi-helper.cc index efa4227eb..41aeb5e3e 100644 --- a/src/helper/wifi-helper.cc +++ b/src/helper/wifi-helper.cc @@ -117,4 +117,39 @@ WifiHelper::Install (const WifiPhyHelper &phy, return Install (phy, mac, NodeContainer (node)); } +void +WifiHelper::WifiLogComponentEnable (void) const +{ + LogComponentEnable ("Aarfcd", LOG_LEVEL_ALL); + LogComponentEnable ("AdhocWifiMac", LOG_LEVEL_ALL); + LogComponentEnable ("AmrrWifiRemoteStation", LOG_LEVEL_ALL); + LogComponentEnable ("ns3::ArfWifiManager", LOG_LEVEL_ALL); + LogComponentEnable ("Cara", LOG_LEVEL_ALL); + LogComponentEnable ("DcaTxop", LOG_LEVEL_ALL); + LogComponentEnable ("DcfManager", LOG_LEVEL_ALL); + LogComponentEnable ("EdcaTxopN", LOG_LEVEL_ALL); + LogComponentEnable ("InterferenceHelper", LOG_LEVEL_ALL); + LogComponentEnable ("Jakes", LOG_LEVEL_ALL); + LogComponentEnable ("MacLow", LOG_LEVEL_ALL); + LogComponentEnable ("MacRxMiddle", LOG_LEVEL_ALL); + LogComponentEnable ("MsduAggregator", LOG_LEVEL_ALL); + LogComponentEnable ("MsduStandardAggregator", LOG_LEVEL_ALL); + LogComponentEnable ("NqapWifiMac", LOG_LEVEL_ALL); + LogComponentEnable ("NqstaWifiMac", LOG_LEVEL_ALL); + LogComponentEnable ("OnoeWifiRemoteStation", LOG_LEVEL_ALL); + LogComponentEnable ("PropagationLossModel", LOG_LEVEL_ALL); + LogComponentEnable ("QadhocWifiMac", LOG_LEVEL_ALL); + LogComponentEnable ("QapWifiMac", LOG_LEVEL_ALL); + LogComponentEnable ("QstaWifiMac", LOG_LEVEL_ALL); + LogComponentEnable ("RraaWifiManager", LOG_LEVEL_ALL); + LogComponentEnable ("SupportedRates", LOG_LEVEL_ALL); + LogComponentEnable ("WifiChannel", LOG_LEVEL_ALL); + LogComponentEnable ("WifiPhyStateHelper", LOG_LEVEL_ALL); + LogComponentEnable ("WifiPhy", LOG_LEVEL_ALL); + LogComponentEnable ("WifiRemoteStationManager", LOG_LEVEL_ALL); + LogComponentEnable ("YansErrorRateModel", LOG_LEVEL_ALL); + LogComponentEnable ("YansWifiChannel", LOG_LEVEL_ALL); + LogComponentEnable ("YansWifiPhy", LOG_LEVEL_ALL); +} + } // namespace ns3 diff --git a/src/helper/wifi-helper.h b/src/helper/wifi-helper.h index 5983c4c7c..7331ee88a 100644 --- a/src/helper/wifi-helper.h +++ b/src/helper/wifi-helper.h @@ -155,6 +155,11 @@ public: NetDeviceContainer Install (const WifiPhyHelper &phy, const WifiMacHelper &mac, std::string nodeName) const; + /** + * Helper to enable all WifiNetDevice log components with one statement + */ + void WifiLogComponentEnable (void) const; + private: ObjectFactory m_stationManager; };