Bug 2865 - Enable function, node, and time prefixes to LteHelper::EnableLogComponents()
Enable function, node, and time prefixes to LteHelper::EnableLogComponents()
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: lte
unspecified
All All
: P3 normal
Assigned To: Biljana Bojović
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-06 18:30 UTC by Tom Henderson
Modified: 2018-03-06 00:40 UTC (History)
1 user (show)

See Also:


Attachments
suggested patch (611 bytes, patch)
2018-02-06 18:30 UTC, Tom Henderson
Details | Diff
suggested patch v2 (6.98 KB, patch)
2018-02-08 19:43 UTC, Tom Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2018-02-06 18:30:51 UTC
Created attachment 3029 [details]
suggested patch

LteHelper::EnableLogComponents() turns on all logging in LTE.  Sample output:

LteInterference:ConditionallyEvaluateChunk(0x1030640)
0x1030640 now +2214285.0ns last +2214285.0ns

However, it is hard to follow anything without node, function, and time context.  With the attached patch, the above becomes:

0.00221428s 4 LteInterference:ConditionallyEvaluateChunk(0x1b78650)
0.00221428s 4 LteInterference:ConditionallyEvaluateChunk(): 0x1b78650 now +2214285.0ns last +2214285.0ns
Comment 1 Biljana Bojović 2018-02-08 02:17:13 UTC
Yes, you are right. I think that this is a very useful patch. 

Could you please proceed and push it? 

Thanks!
Comment 2 Tom Henderson 2018-02-08 19:42:50 UTC
(In reply to Biljana Bojović from comment #1)
> Yes, you are right. I think that this is a very useful patch. 
> 
> Could you please proceed and push it? 
> 
> Thanks!

There were many missing log components also (that method has not been updated in a while).  Do you agree also with the revised patch (all components, alphabetical by directory (model and helper)?
Comment 3 Tom Henderson 2018-02-08 19:43:22 UTC
Created attachment 3033 [details]
suggested patch v2
Comment 4 Tom Henderson 2018-03-06 00:40:39 UTC
fixed in 13393:a44383280cae