LoggerExtensionsLogDataPageTEnum(ILogger, LogLevel, Byte, Byte, String) Method
Logs a data page.
Namespace: SmallEarthTech.AntPlus.Extensions.LoggingAssembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.2+1406bfb784e6c85bd5d7261241f4f4a1a31b0896
public static void LogDataPage<TEnum>(
this ILogger logger,
LogLevel level,
byte value,
byte[] dataPage,
string methodName = ""
)
where TEnum : Enum
<ExtensionAttribute>
Public Shared Sub LogDataPage(Of TEnum As Enum) (
logger As ILogger,
level As LogLevel,
value As Byte,
dataPage As Byte(),
Optional methodName As String = ""
)
public:
[ExtensionAttribute]
generic<typename TEnum>
where TEnum : Enum
static void LogDataPage(
ILogger^ logger,
LogLevel level,
unsigned char value,
array<unsigned char>^ dataPage,
String^ methodName = L""
)
[<ExtensionAttribute>]
static member LogDataPage :
logger : ILogger *
level : LogLevel *
value : byte *
dataPage : byte[] *
?methodName : string
(* Defaults:
let _methodName = defaultArg methodName ""
*)
-> unit when 'TEnum : Enum
- logger ILogger
- The logger instance.
- level LogLevel
- Log level.
- value Byte
- Value of the enumeration.
- dataPage Byte
- The data page as a byte array.
- methodName String (Optional)
- The caller member name.
- TEnum
- Enumeration
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).