Lets take the following example:
$\int \frac{x-4}{(x-2)(x-3)}dx$
The result I get is $2\ln|x-2|-\ln|x-3|+C$
The result in my testbook is:
$\ln \frac{C(x-2)^2}{x-3}$
As $\ln \frac{C(x-2)^2}{x-3} = \ln(x-2)^2 - \ln|x-3| + \ln C$ and $\ln C$ can be every possible rational number, I assume that this is not wrong, but do I have to write it this way?
As you have indicated $$ \ln \frac{C(x-2)^2}{x-3} = \ln(x-2)^2 - \ln|x-3| + \ln C$$ Thus you do not have to change your answer to the compact form unless it is specifically required.
I would check the similar problem's answer in the back of the text book to see what format is used and follow the same format. Specially if it is a homework problem and is graded by a graduate assistant who accepts the solutions which are exactly like what is in the back of the book or in the solution manual.