Step 1: Spot the method:
The function $\log x$ alone has no direct formula, so we try the trick of multiplying by 1 and using the by-parts rule in the form $\int f\,g'\,dx = fg - \int f'\,g\,dx$.
Step 2: Choose the parts:
Take $f(x)=\log x$ and $g'(x)=1$.
Then $f'(x)=\frac{1}{x}$ and $g(x)=x$.
Step 3: Substitute:
\[ \int \log x\,dx = (\log x)(x) - \int \frac{1}{x}\cdot x\,dx \]
\[ = x\log x - \int dx = x\log x - x + k \]
Step 4: Test each option by differentiating:
A good way to confirm the choice is to differentiate every option and see which gives $\log x$.
(A) $\frac{1}{x}$ gives $-\frac{1}{x^2}$. No.
(B) $x\log x$ gives $\log x + 1$. No.
(C) $x\log x - x$ gives $\log x$. Yes.
(D) $x\log x + x$ gives $\log x + 2$. No.
Final Answer:
Only option (C) has derivative equal to $\log x$, so the integral is $x\log x - x + k$.
\[ \boxed{x\log x - x + k} \]