Please forget what the person before said. Remember one rule of logarithms: ln(xy)= lnx+lny? ln(x+y) is not necessarily lnx+lny. You can put a log in front of every equation, in the way that x^2+5=8 is like ln(x^2+5)=ln8. But just claiming that a sum inside a log is like a sum outside a log is incorrect... and fairly stupid as well.
So why is this wrong and in what circumstances is it the correct thing to do? do you have to simplify all of the terms first?
If you do something to one side of the equal sign you must do the same to the other therefore put the whole thing inside a bracket then log the whole thing. Or simplify, whatever you wish