LoggerExtensions Class

Pre-compiled ILoggerTCategoryName logging lines that the entire ecosystem uses.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static class LoggerExtensions
Inheritance
Object    LoggerExtensions

Remarks

For the sake of performance and reducing RAM usage, we have pre-compiled the logging lines that are used in the application.
For more information, see

Methods

LogAppConfigKeyNotFound Logs a warning when an AppConfig key is not found.
LogAppConfigUpdated Logs a successful AppConfig update.
LogAppConfigUpdateFailed Logs a failed AppConfig update.
LogAzureRequestFailure Invoked when an Azure service operation fails with a RequestFailedException.
LogAzureServiceEndPointCallFailure Invoked when we call an Azure service endpoint (Blob storage, Service Bus, Communication Services, etc.), and it ends in error;
LogDc09PayloadAsString Invoked when a DC-09 payload is being processed, and we want to log the content of the payload as string.
LogDevicePayloadProcessing Logs new process from device payload processing
LogLocalizationKeyNotFound Invoked when IStringLocalizer cannot find the localization entry by the provided key
LogModelIsLocked Invoked when the logic wants to use an object that is locked.
LogModelIsSoftDeleted Invoked when the logic wants to use an object that is soft-deleted.
LogModelMissing Invoked when the BaseInputModel is missing and multiple items are missing or one of the multiple items should have been filled in.
LogModelOnlyOneExpected Invoked when the user entered multiple items, but only one of them should've been filled in.
LogPropertyMissing Invoked when a property value is missing in a model. (Being for example , Empty or Empty). This method can also be invoked if keys are missing in a collection.
LogResourceMissingInDatabase(ILogger, ParameterType, Guid) Invoked when a resource derived from IIdLabel is missing in the database. It may have been permanently deleted or never existed.
LogResourceMissingInDatabase(ILogger, ResourceType, Guid) Invoked when a resource derived from IIdLabel is missing in the database. It may have been permanently deleted or never existed.
LogResourceNotValid Invoked when a resource derived from IIdLabel is invalid when we are trying to execute logic on it. It is not invoked if it was nicely caught in a validator!
LogSocketException Invoked when a SocketException occurs. This might be the result of a temporary outage on Azure, so it might not be indicative of a bug.
LogThirdPartyEndPointCallFailure Invoked when we call a third party endpoint, and it ends in error; this may be because their systems are down, or we put in the wrong data.
LogUnexpectedException Invoked when an unexpected and unhandled exception occurs.
LogUnsupportedParameter Invoked when a parameter is unsupported.

See Also