Check the domain. Logarithms are only defined for positive arguments, so we need x>0 and x−2>0, i.e. x>2. Reject x=−2.
x=4
Common mistake
Keeping x=−2. Always check solutions of log equations against the domain. Writing log2x+log2(x−2)=log2(2x−2) (adding instead of multiplying) gives the wrong answer x=5.