fixing ODE with initial conditions

When I enter the command

 DSolve[{3xy'[x]-y[x]==log[x]+1, y[1]==-2}, y[x],x] 

the program gives me interpretation is unavailable, any suggestions?

DSolve[{3 x y’ - y == Log + 1, y[1] == -2}, y, x]

Works fine, you made syntax errors.

yeah probably, thanks for the feedback.