I'm going to rephrase this because I seem to be confusing people.
If I have $a+b=c$
I can say $\ln a+\ln b=\ln c$
But if I have $\ln a+\ln b=\ln c$
I can't say $a+b=c$
Why?
I'm going to rephrase this because I seem to be confusing people.
If I have $a+b=c$
I can say $\ln a+\ln b=\ln c$
But if I have $\ln a+\ln b=\ln c$
I can't say $a+b=c$
Why?
No, if $a+b=c$ you can say $\log(a+b)=\log c$. What you might be thinking is, if $ab=c$ then $\log ab=\log a+\log b=\log c$, and conversely. As I had written, consider $$a^2+b^2=c^2$$ Why should it follow that $a+b=c$?
If $a = b$ then $f(a) = f(b)$ for any function with $a$ in its domain. The converse is not true. That is, if $f(a) = f(b)$, then $a$ is not necessarily equal to $b$. If $f : X \to Y$ is such that $f(a) = f(b)$ implies $a = b$, $f$ is said to be injective (or $1-1$). Injectivity is equivalent to the existence of an inverse function $f^{-1} : f(X) \to X$ which satisfies $(f^{-1}\circ f)(x) = x$ for every $x \in X$ and $(f\circ f^{-1})(y) = y$ for every $y \in f(X)$.
In the example you're considering, the exponential function is the inverse of the natural logarithm. That is $\exp(\ln(x)) = x$ for every $x \in (0, \infty)$ and $\ln(\exp(y)) = y$ for every $y \in \mathbb{R}$. Therefore, if you have $\ln(a) = \ln(b)$, by the first sentence in this answer, I can apply the exponential function to both sides which gives $\exp(\ln(a)) = \exp(\ln(b))$. Now $\exp(\ln(a)) = a$ and $\exp(\ln(b)) = b$, so we obtain $a = b$.
Added to address the edit: If $a + b = c$ you cannot say that $\ln(a) + \ln(b) = \ln(c)$. For example $1 + 1 = 2$ but $\ln(1) + \ln(1) = 0 \neq \ln(2)$.
If you have $a=b$ you can apply any function $f$ and get $f(a)=f(b)$.
A function $f$ does need to be well defined meaning if $x=y$ then $f(x)=f(y)$.