How are logarithms used to measure the intensity of an earthquake?

How are logarithms used to measure the intensity of an earthquake?