WifiHelper method to enable all Wifi logging
authorTom Henderson <tomh@tomh.org>
Fri, 19 Jun 2009 20:26:51 -0700
changeset 4588 0698fdc1aaf9
parent 4587 a02d5aeae94b
child 4589 c9374dcfd09a
WifiHelper method to enable all Wifi logging
src/helper/wifi-helper.cc
src/helper/wifi-helper.h
--- a/src/helper/wifi-helper.cc	Wed Jun 24 14:35:07 2009 -0700
+++ b/src/helper/wifi-helper.cc	Fri Jun 19 20:26:51 2009 -0700
@@ -117,4 +117,39 @@
   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
--- a/src/helper/wifi-helper.h	Wed Jun 24 14:35:07 2009 -0700
+++ b/src/helper/wifi-helper.h	Fri Jun 19 20:26:51 2009 -0700
@@ -155,6 +155,11 @@
   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;
 };