How to write the Log Level Information into a file
1,648 views
Skip to first unread message
prady
unread,
Jun 9, 2011, 5:28:59 AM6/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-users
Hi all
I was working on the Lte module and I wanted to write the
LogComponentEnable ("UdpClient", LOG_LEVEL_INFO);
LogComponentEnable ("UdpServer", LOG_LEVEL_INFO); into a text file in
order to analyze the results. One way is to read the values from the
terminal but I was wondering how one can write the values directly
into a file. The lte module does not have trace.files though.
Regards
Rober
unread,
Jun 9, 2011, 9:25:01 AM6/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-users
As tutorial says, you can dump the stdout to a file like:
./waf --run scratch/myfirst > log.out 2>&1
It's the simplest way to get a file with all the logging.