On a unified approach to the law of the iterated logarithm for martingales