Adds logging function for future debugging.
Useful reading for adding markers to polyline