-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LogEventInfo.StackTrace moved into CallSiteInformation #2386
Conversation
6046bd0
to
0852ecc
Compare
Codecov Report
@@ Coverage Diff @@
## master #2386 +/- ##
=======================================
- Coverage 82% 82% -<1%
=======================================
Files 318 319 +1
Lines 22796 22898 +102
Branches 2789 2824 +35
=======================================
+ Hits 18671 18705 +34
- Misses 3419 3465 +46
- Partials 706 728 +22 |
0852ecc
to
1820287
Compare
1820287
to
34dd342
Compare
/// </summary> | ||
private static HashSet<string> CallerInformationAttributeNames = new HashSet<string> | ||
private static List<string> CallerInformationAttributeNames = new List<string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why no hashset? Afaik it's more efficient with 3+ elements, and it's static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I don't need the HashSet-lookup, and the struct-enumerator on List is allocation-free.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
Two small comments.
return frame?.GetMethod(); | ||
} | ||
|
||
public string GetCallerClassName(MethodBase method, bool includeNameSpace, bool cleanAsyncMoveNext, bool cleanAnonymousDelegates) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about a struct/class for the last 3 parameters?
(the same object for GetCallerMemberName
Only for readability of the calling site.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have no opinion. But not that big fan of struct-parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK,it's internal.so could be done in the future
Attempt to resolve #2382