- Refactor logEndpoints, logResources and logProviders.
- Separate logging and building resources information.
- Make getEndpointsInfo public for accessing from the application code