Skip to content
This repository was archived by the owner on Oct 17, 2018. It is now read-only.

Add event ids to all log calls #110

Merged
merged 1 commit into from
Nov 18, 2015
Merged

Add event ids to all log calls #110

merged 1 commit into from
Nov 18, 2015

Conversation

pakrym
Copy link
Contributor

@pakrym pakrym commented Nov 17, 2015


private static Action<ILogger, Guid, Exception> _foundRevocationOfKey;

private static Action<ILogger, XElement, Exception> _ExceptionWhileProcessingRevocationElement;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no, field starts with capital E 😄

@victorhurdugaci
Copy link
Contributor

Looks good :shipit: assuming the CI passes

@pakrym
Copy link
Contributor Author

pakrym commented Nov 18, 2015

🆙 📅
Requires aspnet/Logging#296

public static void LogDebugF(this ILogger logger, FormattableString message)
public static void UsingFallbackKeyWithExpirationAsDefaultKey(this ILogger logger, Guid keyId, DateTimeOffset expirationDate)
{
_usingFallbackKeyWithExpirationAsDefaultKey(logger, keyId, expirationDate, null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Named param for the null at the end of these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, its Action<?> so param name would be argN

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right, I keep forgetting that.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good ol' inline comment /* parameterX */ null

@Eilon
Copy link
Contributor

Eilon commented Nov 18, 2015

Just small comments, then :shipit:

@pakrym pakrym force-pushed the pakrym/log-eventid-3 branch from b05c495 to c48173c Compare November 18, 2015 19:37
@pakrym pakrym merged commit c48173c into dev Nov 18, 2015
@GrabYourPitchforks
Copy link
Contributor

You're going to have to rerun perf tests against this library. The code was originally written in such a way that gathering the data to be written to the log was deferred until it was known for certain that there was a logger listening. For instance, the expensive JoinPurposesForLog operation was never called unless the was a logger present and it had the debug level enabled. This method is now called for all calls to Protect and Unprotect, even if no logger is present. (There are other instances of expensive operations, but this is the most obvious.)

/cc @blowdart

@pakrym
Copy link
Contributor Author

pakrym commented Nov 21, 2015

@GrabYourPitchforks
Copy link
Contributor

@pakrym great :)

@natemcmaster natemcmaster deleted the pakrym/log-eventid-3 branch August 25, 2017 17:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants