Now that we have refactored our code to allow dependency injection, we can implement a custom login library to log details using a mechanism different from the Dynamics 365 ITracingService interface.
In this recipe, we will implement a custom logging library that logs to both the Dynamics 365 ITracingService interface as well as a CRM entity, which in turn writes to an Azure Service Bus.