I want to write some log to record the System Location Service usage history in my Wpf app.
The requirement is when my WPF app is running, it can monitor which application on my pc is using the Location Service and write some log.
For example: When Chrome is opened and tries to access the location service, my app can write a log like "Chrome tried to access location service at 01:23 PM".
But after a lot of search and research work, I didn't find any good solution for this.
Can anyone give me some advise or help?