Merge branch 'release' into dev

This commit is contained in:
Kiran Challa 2016-04-22 09:58:14 -07:00
commit 86a95f7fe2
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ namespace Microsoft.Extensions.Logging
internal static class LoggingExtensions internal static class LoggingExtensions
{ {
private static Action<ILogger, string, Exception> _tokenValidationFailed; private static Action<ILogger, string, Exception> _tokenValidationFailed;
private static Action<ILogger, string, Exception> _tokenValidationSucceeded; private static Action<ILogger, Exception> _tokenValidationSucceeded;
private static Action<ILogger, Exception> _errorProcessingMessage; private static Action<ILogger, Exception> _errorProcessingMessage;
static LoggingExtensions() static LoggingExtensions()
@ -17,7 +17,7 @@ namespace Microsoft.Extensions.Logging
eventId: 1, eventId: 1,
logLevel: LogLevel.Information, logLevel: LogLevel.Information,
formatString: "Failed to validate the token {Token}."); formatString: "Failed to validate the token {Token}.");
_tokenValidationSucceeded = LoggerMessage.Define<string>( _tokenValidationSucceeded = LoggerMessage.Define(
eventId: 2, eventId: 2,
logLevel: LogLevel.Information, logLevel: LogLevel.Information,
formatString: "Successfully validated the token."); formatString: "Successfully validated the token.");
@ -34,7 +34,7 @@ namespace Microsoft.Extensions.Logging
public static void TokenValidationSucceeded(this ILogger logger) public static void TokenValidationSucceeded(this ILogger logger)
{ {
_tokenValidationSucceeded(logger, null, null); _tokenValidationSucceeded(logger, null);
} }
public static void ErrorProcessingMessage(this ILogger logger, Exception ex) public static void ErrorProcessingMessage(this ILogger logger, Exception ex)