$f(x) = \displaystyle\sum_{n=1}^{\infty}\frac{x^n}{n} = x + \frac{x^2}{2} + \frac{x^3}{3} + ... = -\ln(1-x)$ for $|x| < 1$.
$f'(x) = \displaystyle\sum_{n=1}^{\infty}x^{n-1} = 1 + x + x^2 + x^3 +... = \frac{1}{1-x}$ for $|x| < 1$
If $f'(x) = \displaystyle\frac{1}{1-x}$, then $f(x) = \displaystyle\int\frac{1}{1-x}dx$
But $\displaystyle\int \frac{1}{1-x}dx = -\ln(1-x) + C$, and so $f(x) = -\ln(1-x) + C$
Do we need a definite integral here so there will be no $C$ and will agree with how $f(x)$ was originally defined? If so what would the definite integral be? Or maybe there is no definite integral at all?
You're right: $f'(x)=\frac1{1-x}$, so $f(x)$ must be $-\ln(1-x)+C$ for some $C$. Now, to find what $C$ is, try letting $x$ be $0$ and solving for $C$.
Or, if you want to do a definite integral, start with: $$1+t+t^2+\dotsb=\frac1{1-t}$$ Take the definite integral from $0$ to $x$: \begin{align} \int_0^x(1+t+t^2+\dotsb)\operatorname d\!t&=\int_0^x\frac1{1-t}\operatorname d\!t\\ x+\frac{x^2}2+\frac{x^3}3+\dotsb&=-\ln(1-x) \end{align}
Note that if we take $x=-1$, we get the famous series for $\ln2$: $$\ln2=1-\frac12+\frac13-\dotsb$$ which can be proven without calculus if you try hard enough.