Refactor LogProviderOptions (#25250)
### Description
This pull request refactors the logging of provider options in the ONNX
Runtime framework to improve telemetry functionality. The changes
include consolidating logging logic, introducing platform-independent
methods, and enhancing the telemetry interface for better extensibility.