using custom log function
Now the gps trace is given to the mockLocationProvider as an argument in
the constructor