The rule to remember for going from exponent to logarithm is to remember that the base of the logarithm, is the base of the exponent (and vice versa). The other two numbers swap to other sides of the equals
So 3^4 = 81 becomes log_{3} 81 = 4.
Also log_{2}64 = X becomes 2^{X} = 64. So X=6.