Class DiagnosticsCommonILoggerExtensions
Inheritance
System.Object
DiagnosticsCommonILoggerExtensions
Namespace: Microsoft.Extensions.Logging
Assembly: Copper.Diagnostics.Common.dll
Syntax
public static class DiagnosticsCommonILoggerExtensions
Methods
View SourceLogFailedRequest(ILogger, MethodInfo, TimeSpan)
Logs a failed request.
Declaration
public static void LogFailedRequest(this ILogger logger, MethodInfo methodInfo, TimeSpan elapsed)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The logger. |
System.Reflection.MethodInfo | methodInfo | The method information. |
System.TimeSpan | elapsed | The elapsed time. |
LogSuccessfulRequest(ILogger, MethodInfo, TimeSpan)
Logs a successful request.
Declaration
public static void LogSuccessfulRequest(this ILogger logger, MethodInfo methodInfo, TimeSpan elapsed)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The logger. |
System.Reflection.MethodInfo | methodInfo | The method information. |
System.TimeSpan | elapsed | The elapsed time. |