Class DiagnosticsClientILoggerExtensions
Inheritance
System.Object
DiagnosticsClientILoggerExtensions
Namespace: Microsoft.Extensions.Logging
Assembly: Copper.Diagnostics.Client.dll
Syntax
public static class DiagnosticsClientILoggerExtensions
Methods
View SourceLogFailedDependency(ILogger, MethodInfo, Object[], TimeSpan)
Logs a failed dependency to the logger.
Declaration
public static void LogFailedDependency(this ILogger logger, MethodInfo methodInfo, object[] arguments, TimeSpan elapsed)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The logger. |
System.Reflection.MethodInfo | methodInfo | The method information. |
System.Object[] | arguments | The method arguments. |
System.TimeSpan | elapsed | The elapsed time. |
LogSuccessfulDependency(ILogger, MethodInfo, Object[], TimeSpan)
Logs a successful dependency to the logger.
Declaration
public static void LogSuccessfulDependency(this ILogger logger, MethodInfo methodInfo, object[] arguments, TimeSpan elapsed)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The logger. |
System.Reflection.MethodInfo | methodInfo | The method information. |
System.Object[] | arguments | The method arguments. |
System.TimeSpan | elapsed | The elapsed time. |