NS3 logging

19 views
Skip to first unread message

KS

unread,
May 28, 2020, 12:42:20 PM5/28/20
to ns-3-users
Hello,

I am using ns3 logging however I want to output the logs to a file and append to the same file after every simulation is there a way for that??

Tom Henderson

unread,
May 28, 2020, 12:59:19 PM5/28/20
to ns-3-...@googlegroups.com, KS
Logging is output to stderr. To run a program with logging and save it
to a new file (overwriting an old one if it exists) you can do:

./waf --run 'program-name' > log.out 2>&1

to append to an existing 'log.out' file instead:

./waf --run 'program-name' >> log.out 2>&1
Reply all
Reply to author
Forward
0 new messages