LoggerExtensionsLogAntResponse Method

Logs an ANT response. Null payloads are logged as "Null".

Definition

Namespace: SmallEarthTech.AntPlus.Extensions.Logging
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.1+2b48744145fe7ef0b0e6d89d46e9cc83d8627463
C#
public static void LogAntResponse(
	this ILogger logger,
	LogLevel level,
	AntResponse antResponse,
	string methodName = ""
)

Parameters

logger  ILogger
The logger instance.
level  LogLevel
Log level.
antResponse  AntResponse
The AntResponse received.
methodName  String  (Optional)
The caller member name.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILogger. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also