Step 1 :The function is \(g(x)=\log (2-x)\).
Step 2 :The domain of a logarithmic function is the set of all real numbers for which the argument of the logarithm is greater than zero.
Step 3 :In this case, the argument of the logarithm is \(2-x\). Therefore, we need to solve the inequality \(2-x > 0\) to find the domain of the function.
Step 4 :The solution to the inequality \(2-x > 0\) is \(x < 2\).
Step 5 :This means that the domain of the function \(g(x) = \log(2-x)\) is all real numbers less than 2.
Step 6 :Final Answer: The domain of the function in interval notation is \(\boxed{(-\infty, 2)}\).