You write $\ln x$ and move on.
Integrating $1/x$ gives $\ln|x| + C$. The bars matter: the domain includes negative $x$ unless the question says otherwise. The $+C$ makes it a family, not one primitive.
Next time: Bars on every log from integration; $+C$ on every indefinite.