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
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
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.

Bye
Rober
Reply all
Reply to author
Forward
0 new messages