Step 1: Spot a perfect derivative:
The left side $x\frac{dy}{dx} + y$ is exactly $\frac{d}{dx}(xy)$. So let $w = xy$, which means $y = \frac{w}{x}$ and $y^2 = \frac{w^2}{x^2}$.
Step 2: Rewrite the equation in w:
\[ \frac{dw}{dx} = \frac{w^2}{x^2}\,\log x \]
The variables now separate: all $w$ terms go to one side and all $x$ terms to the other.
\[ \frac{dw}{w^2} = \frac{\log x}{x^2}\,dx \]
Step 3: Integrate both sides:
Left side: $\int w^{-2}\,dw = -\frac{1}{w}$.
Right side: use integration by parts with $\log x$ as the first function.
\[ \int \frac{\log x}{x^2}\,dx = -\frac{\log x}{x} - \frac{1}{x} \]
So
\[ -\frac{1}{w} = -\frac{\log x}{x} - \frac{1}{x} + k \]
Step 4: Replace w by xy:
Change signs on both sides and write $w = xy$:
\[ \frac{1}{xy} = \frac{\log x + 1}{x} - k \]
Multiply by $x$:
\[ \frac{1}{y} = \log x + 1 - kx \]
Since $-k$ is just another arbitrary constant, call it $c$.
Step 5: Check:
From $y = \frac{1}{1 + \log x + cx}$, direct substitution gives $xy' + y - y^2\log x = 0$, which confirms the solution.
Final Answer:
The general solution is
\[ \boxed{\frac{1}{y} = 1 + \log x + c x} \]