You're not going wrong. Use properties of logarithms to see that , which differs from the given answer only by a constant of integration.
I have to agree with JeWiSh that this is a really daft way to calculate this integral. Much better would be to make the substitution , leading immediately to the answer .