First, observe that the domain of log function is a set of all positive real numbers. So the above equation is not true for non-positive real numbers.
Now, let y = elog x.
If y > 0, we may take logarithm which gives us
log y = log (elog x) = log x . log e = log x.
Thus y = x.
Hence x = elog x is true only for positive values of x.