Logarithms are only able to make an equation linear if it is an exponential function. For example,

can be made linear by taking the natural logarithm of each side, causing it to become

. After some simplifying, you are left with

. You are then able to plot ln(y) vs. x to get a linear fit.