Step 1: Understanding the Concept
The equation is homogeneous in \(x\) and \(y\), so substitute \(y = vx\) and \(\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}\).
Step 2: Substitute
\(x\dfrac{dy}{dx} = y(\log y - \log x + 1)\) becomes \(v + x\dfrac{dv}{dx} = v(\log v + 1)\).
So \(x\dfrac{dv}{dx} = v\log v\).
Step 3: Separate and integrate
\(\dfrac{dv}{v\log v} = \dfrac{dx}{x}\)
Integrating, \(\log(\log v) = \log x + \log c\), so \(\log v = cx\).
Step 4: Back-substitute
Replace \(v = \dfrac{y}{x}\) to get \(\log\dfrac{y}{x} = cx\), which matches option D.
Final Answer:
The solution is \(\log\dfrac{y}{x} = cx\).
\[ \boxed{\text{(D) }\log\dfrac{y}{x} = cx} \]