Well logarithm is basically the inverse of exponentiation.
If you want to know how to calculate it in a calculator first you enter the number that you want in there. Then you press the inverse button and then lastly you press the botton that looks like this 10^3