Log a message to the console when the slider is tapped.