Ore Stats is a lightweight open source mod for Minecraft 1.10.2 that logs HiddenOre drops and stone breaks to {your minecraft directory}/OresStats.
These log files contain the biome, height, dimension, and tool used of every stone break and every HiddenOre drop that you get while you have logging enabled.
Log files are formatted as a series of JSON objects, separated by newlines. Although they are initially saved as .txt files, old ones are zipped to conserve space.
Download the latest release from here and install it the usual way
By default, pressing "O" will toggle whether logging is enabled. This can be rebound in the controls menu.