LogComponentEnable in NS2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

LogComponentEnable in NS2

Samira
This post has NOT been accepted by the mailing list yet.
Hi all,
In NS3, there is "LogComponentEnable" feature that helps to understand which
function is running.
I whish to know is there any way for NS2 to receive the same result? Thanks
in advance.

---------------------------------------------------
for instance:
LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO);

LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO);

$ export NS_LOG=UdpEchoClientApplication=level_all
==>
UdpEchoClientApplication:UdpEchoClient()

UdpEchoClientApplication:SetDataSize(1024)

UdpEchoClientApplication:StartApplication()

UdpEchoClientApplication:ScheduleTransmit()

UdpEchoClientApplication:Send()
---------------------------------------------------------------------------