LoggerExtensions Class

Provides extension methods for logging used in the AntPlus class library and the hosting extensions library. The design goal is to provide a consistent logging experience across the libraries and good performance.

Definition

Namespace: SmallEarthTech.AntPlus.Extensions.Logging
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.1+2b48744145fe7ef0b0e6d89d46e9cc83d8627463
C#
public static class LoggerExtensions
Inheritance
Object    LoggerExtensions

Remarks

The public methods in this class perform the required parameter conversions and call the private methods decorated with the LoggerMessageAttribute attribute.

LogUnknownDataPage and LogUnknownDataPage<TEnum> are used to log unknown data pages from an ANT device. Use LogUnknownDataPage when the data page value at page index 0 is not supported by the derived AntDevice parser. Use LogUnknownDataPage<TEnum> when a data page value at some other index is not supported by the derived AntDevice parser.

Methods

LogAntCollectionChange Logs a change in the ANT device collection. The log level is Debug.
LogAntDeviceState Logs the state of an ANT device. The log level is Debug.
LogAntResponse Logs an ANT response. Null payloads are logged as "Null".
LogDataPage(ILogger, LogLevel, Byte, String) Logs a data page.
LogDataPageTEnum(ILogger, LogLevel, Byte, Byte, String) Logs a data page.
LogIgnoredDataPageTEnum Logs a warning message indicating an ignored or unexpected page.
LogMethodEntry Logs a method entry. The log level is Debug.
LogSendAcknowledgedMessage Logs a debug message about sending an acknowledged message.
LogUnhandledAntResponse Logs an unhandled ANT response. Null payloads are logged as "Null".
LogUnknownDataPage(ILogger, Byte, String) Logs a warning message indicating an unknown data page.
LogUnknownDataPageTEnum(ILogger, Byte, Byte, String) Logs a warning message indicating an unknown data page deeper in the device parsing hierarchy.

See Also