Write in exponential form.

Log[base a]B=2

That would be

a^2 = B

Note that the base of the log and the base of the exponent are the same.

The log (in this case, 2) is the exponent.